Add some rudimentary dependency installation

Add `alsa-lib` port
This commit is contained in:
Nathan Fisher 2022-09-11 10:20:21 -04:00
parent 1a8fefac58
commit 15f6d6e6f8
10 changed files with 68 additions and 1 deletions

View File

View File

0
audio/alsa-lib/DESCR Normal file
View File

14
audio/alsa-lib/Makefile Normal file
View File

@ -0,0 +1,14 @@
# Makefile - hhl - /usr/ports/lang/gcc12
# Copyright 2022 Nathan Fisher <nfisher.sr@gmail.com>
#
comment = The ALSA library used for the ALSA sound interface
distname = alsa-lib
pkg_version = 1.2.7.2
pkg_homepage = https://www.alsa-project.org/
pkg_license = gnu-gpl-v2
pkg_maintainer = jeang3nie@hitchhiker-linux.org
distext = bz2
dist_remote = $(pkg_homepage)/files/pub/lib/$(distfile)
sha512_sum = 79e5920384e570a1acd8ecd1eb8812879333c3cedb1d15780080afc40125b97df893c33f4163d9dd863871b628bc6026265f8ace2c8634fc1af5b52b62ac9cfe
include ../../mk/ports.mk
include ../../mk/targets.mk

0
audio/alsa-plugins/DESCR Normal file
View File

View File

0
audio/alsa-utils/DESCR Normal file
View File

View File

View File

@ -100,6 +100,12 @@ $(workdir)/BUILD_INFO: $(workdir)/.staged
@echo PKGSYSCONFBASEDIR=/usr/pkg/etc >> work/build_info
@echo PKGSYSCONFDIR=/usr/pkg/etc >> work/build_info
@echo PKGTOOLS_VERSION=$$(pkg_add -V) >> work/build_info
@find $(DESTDIR) -type f | while read f ; \
do if [ "$$(file $$f | grep ELF)" != "" ] ; \
then ldd $$f ; fi ; \
done | awk '{ print $$3 }' | grep -v linux-vdso | sort -u | \
while read f ; \
do echo REQUIRES=$$f >> work/build_info ; done
@for provides in $(pkg_provides) ; \
do echo PROVIDES=$${provides} >> work/build_info ; done
@mv work/build_info $@
@ -127,12 +133,24 @@ $(srcdir)/.patched: $(patches) $(srcdir)/.dirstamp
patch -p1 < $(wkgdir)/$${patch} ; done
touch $@
$(srcdir)/.dirstamp: $(distlocal) | $(workdir)
$(srcdir)/.dirstamp: $(distlocal) install_dependencies | $(workdir)
$(info $(grn)=== Extracting $(distlocal) ===$(reset))
[ "$$(sha512sum $(distlocal) | awk '{ print $$1 }')" == "$(sha512_sum)" ]
tar $(tarflags) $(distlocal) -C work/
touch $@
install_dependencies: $(workdir)/.dependencies_installed
.PHONY: install_dependencies
$(workdir)/.dependencies_installed: | $(workdir)
for dep in $(dependencies) ; \
do depname = $$(basename $${dep}) ; \
if [ ! $$(pkg_info -qe $${depname}) ] ; \
then make -C /usr/ports/$${dep} ; \
fi ; done
touch $@
ifeq ($(use_configure),1)
show-config_opts:
$(info $(grn)$(config_opts)$(reset))

35
x11/briskmenu/Makefile Normal file
View File

@ -0,0 +1,35 @@
# Makefile - hhl - /usr/ports/x11/briskmenu
# Copyright 2022 Nathan Fisher <nfisher.sr@gmail.com>
#
comment = https://github.com/getsolus/brisk-menu/releases
distname = brisk-menu
pkg_version = v0.6.2
pkg_homepage = https://github.com/getsolus/brisk-menu/
pkg_license = gnu-gpl-v2
pkg_maintainer = jeang3nie@hitchhiker-linux.org
distremote =
sha512_sum = e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
include ../../mk/ports.mk
include config.mk
include provides.mk
ifeq ($(enable_fortran), 1)
fortran = ,fortran
endif
ifeq ($(enable_go), 1)
golang = ,go
endif
ifeq ($(enable_objc), 1)
objc = ,objc
endif
ifeq ($(enable_objcxx), 1)
objcxx = ,obj-c++
endif
config_opts += --enable-languages=c,c++,lto$(fortran)$(golang)$(objc)$(objcxx)
config_opts += --disable-multilib
config_opts += --disable-bootstrap
config_opts += --with-system-zlib
include ../../mk/targets.mk