diff --git a/distro/archbsd/this/Makefile b/distro/archbsd/this/Makefile new file mode 100644 index 0000000..afe5514 --- /dev/null +++ b/distro/archbsd/this/Makefile @@ -0,0 +1,4 @@ +all: + $(MAKE) -f ../../archlinux/this/Makefile \ + LIBC_DEPEND=libc \ + DESTDIR=distro/archbsd/this diff --git a/distro/archlinux/this/Makefile b/distro/archlinux/this/Makefile index 22fb6c3..6efdc00 100644 --- a/distro/archlinux/this/Makefile +++ b/distro/archlinux/this/Makefile @@ -9,9 +9,10 @@ CARCH := $(shell uname -m) PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH) PKG := $(PKGDIR).pkg.tar.xz PKGINFO := $(PKGDIR)/.PKGINFO -DESTDIR := distro/archlinux/this/$(PKGDIR) +DESTDIR := distro/archlinux/this CFLAGS := +LIBC_DEPEND := glibc ifneq (, $(findstring i686, $(CARCH))) CFLAGS += -m32 @@ -21,7 +22,7 @@ endif base: $(MAKE) -C $(BASEDIR) clean CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ - $(MAKE) -C $(BASEDIR) "DESTDIR=$(DESTDIR)" "PREFIX=$(PREFIX)" install + $(MAKE) -C $(BASEDIR) "DESTDIR=$(DESTDIR)/$(PKGDIR)" "PREFIX=$(PREFIX)" install @echo "pkgname = gmqcc" > $(PKGINFO) @echo "pkgver = $(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)" >> $(PKGINFO) @echo "pkgdesc = An Improved Quake C Compiler" >> $(PKGINFO) @@ -32,7 +33,7 @@ base: @echo "arch = $(CARCH)" >> $(PKGINFO) @echo "license = MIT" >> $(PKGINFO) @echo "conflict = gmqcc" >> $(PKGINFO) - @echo "depend = glibc" >> $(PKGINFO) + @echo "depend = $(LIBC_DEPEND)" >> $(PKGINFO) @echo "makepkgopt = strip" >> $(PKGINFO) @echo "makepkgopt = docs" >> $(PKGINFO) @echo "makepkgopt = libtool" >> $(PKGINFO)