Summary: | [patch] print/pdftk fix minor bugs in port | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Serhii (Sergey) Kozlov <skozlov> | ||||
Component: | Individual Port(s) | Assignee: | Mathieu Arnold <mat> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | Normal | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Serhii (Sergey) Kozlov
![]() ![]() Responsible Changed From-To: freebsd-ports-bugs->mat Over to maintainer (via the GNATS Auto Assign Tool) Author: mat Date: Thu Mar 6 18:54:06 2014 New Revision: 347306 URL: http://svnweb.freebsd.org/changeset/ports/347306 QAT: https://qat.redports.org/buildarchive/r347306/ Log: If GCC wasn't built with java support the port couldn't build and BUILD_DEPENDS only made gcc recompile without actually solving the problem. This patch introduces pre-configure target to check for gcc java items and give a meaningful explanation if none found. Changed "-Wl,-rpath" to "LDFLAGS" in REINPLACE as suggested by Gerald Pfeifer here http://docs.freebsd.org/cgi/getmsg.cgi?fetch=606002+0+archive/2013/svn-ports-head/20131208.svn-ports-head PR: 186893 Submitted by: Kozlov Sergey Sponsored by: Absolight Modified: head/print/pdftk/Makefile Modified: head/print/pdftk/Makefile ============================================================================== --- head/print/pdftk/Makefile Thu Mar 6 18:51:17 2014 (r347305) +++ head/print/pdftk/Makefile Thu Mar 6 18:54:06 2014 (r347306) @@ -13,14 +13,6 @@ COMMENT= Simple tool for doing everyday LICENSE= GPLv2 -LIB_DEPENDS= libgcj.so:${PORTSDIR}/lang/${_GCC_PORT} \ - libstdc++.so:${PORTSDIR}/lang/${_GCC_PORT} \ - libgcc_s.so:${PORTSDIR}/lang/${_GCC_PORT} - -BUILD_DEPENDS= gcj${CSUFF}:${PORTSDIR}/lang/${_GCC_PORT} \ - gcjh${CSUFF}:${PORTSDIR}/lang/${_GCC_PORT} \ - cpp${CSUFF}:${PORTSDIR}/lang/${_GCC_PORT} - USE_ZIP= yes # Get GCC version suffix without the dot in USE_GCC @@ -42,11 +34,20 @@ MAKE_ENV= GCJ=gcj${CSUFF} GCJH=gcjh${CSU PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz +pre-configure: + @if [ ! -e ${LOCALBASE}/bin/gcj${CSUFF} ]; then \ + ${ECHO_MSG} ""; \ + ${ECHO_MSG} "Can not find gcj${CSUFF}"; \ + ${ECHO_MSG} "Please rebuild ${_GCC_PORT} with java support"; \ + ${ECHO_MSG} ""; \ + exit 1; \ + fi + post-patch: @${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|g" ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=${CSUFF}|g" ${WRKSRC}/${MAKEFILE} - @${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib/gcc${CSUFF} -w|g" ${WRKSRC}/${MAKEFILE} - @${REINPLACE_CMD} -e "s|LDLIBS= -lgcj|LDLIBS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} ${ICONV_LIB} -lz -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib/gcc${CSUFF} -w|g" \ + @${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L${LOCALBASE}/lib ${LDFLAGS} -w|g" ${WRKSRC}/${MAKEFILE} + @${REINPLACE_CMD} -e "s|LDLIBS= -lgcj|LDLIBS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} ${ICONV_LIB} -lz -L${LOCALBASE}/lib ${LDFLAGS} -w|g" \ ${WRKSRC}/${MAKEFILE} do-install: _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" State Changed From-To: open->closed Committed, thanks! |