Skip to content

Instantly share code, notes, and snippets.

@tjfontaine
Created June 18, 2013 18:25
Show Gist options
  • Save tjfontaine/5807945 to your computer and use it in GitHub Desktop.
Save tjfontaine/5807945 to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index 78cebdb..73eaac0 100644
--- a/Makefile
+++ b/Makefile
@@ -320,14 +320,14 @@ binary: $(BINARYTAR)
$(PKGSRC): release-only
rm -rf dist out
- $(PYTHON) configure --prefix=/ --without-snapshot \
+ $(PYTHON) configure --prefix=/opt/local --without-snapshot \
--dest-cpu=$(DESTCPU) --tag=$(TAG) $(CONFIG_FLAGS)
- $(MAKE) install DESTDIR=dist
- (cd dist; find * -type f | sort) > packlist
+ LDFLAGS="-R /opt/local/gcc47/lib:/opt/local/lib" $(MAKE) install DESTDIR=dist
+ (cd dist/opt/local/ && find * -type f -o -type l | sort) > packlist
pkg_info -X pkg_install | \
egrep '^(MACHINE_ARCH|OPSYS|OS_VERSION|PKGTOOLS_VERSION)' > build-info
pkg_create -B build-info -c tools/pkgsrc/comment -d tools/pkgsrc/description \
- -f packlist -I /opt/local -p dist -U $(PKGSRC)
+ -f packlist -I /opt/local -p dist/opt/local -U $(PKGSRC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment