diff options
author | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
commit | f8357b5cbaa160ccdf9943cac099f5e092c591da (patch) | |
tree | d0c8617b772b8f0a175d436d938b8d844590b41f /www/surf | |
parent | 89a7d6ecbdde724b92ca6650493f56cf68855f35 (diff) | |
download | freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.gz freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.zst freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.zip |
- Fix missing library problems when the linker enforces explicit linking
PR: 192062
Exp-run by: antoine
Approved by: portmgr (antoine)
Diffstat (limited to 'www/surf')
-rw-r--r-- | www/surf/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/surf/Makefile b/www/surf/Makefile index e7178bd5a478..2bb1476c1718 100644 --- a/www/surf/Makefile +++ b/www/surf/Makefile @@ -16,8 +16,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2 RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu -USE_CSTD= c99 USE_GNOME= gtk20 +USE_XORG= x11 USES= pkgconfig PORTDOCS= README @@ -28,9 +28,6 @@ DESKTOP_ENTRIES="Surf" "" "${PREFIX}/share/pixmaps/surf.png" "surf" "" true CONFLICTS= surf-1* # math/surf -# Name conflicts with the math/surf port -NO_LATEST_LINK= yes - .include <bsd.port.options.mk> pre-everything:: @@ -45,11 +42,14 @@ post-extract: post-patch: @${REINPLACE_CMD} -e \ - 's|^\(PREFIX\)|#\1| ; \ + '/^PREFIX/d ; \ s|/share/man|/man| ; \ - s|^\(CFLAGS\) =.*|\1 += -I. $${GTKINC} $${CPPFLAGS}| ; \ - s|^\(LDFLAGS\) =.*|\1 += $${GTKLIB}| ; \ - s|^\(CC\)|#\1|' ${WRKSRC}/config.mk + /^X11INC =/s/=.*/= `pkg-config --cflags x11`/ ; \ + /^X11LIB =/s/=.*/= `pkg-config --libs x11`/ ; \ + /^CPPFLAGS =/s|$$| ${CPPFLAGS}| ; \ + /^CFLAGS =/s|-Os| ${CFLAGS}| ; \ + /^LDFLAGS =/s|$$| ${LDFLAGS}| ; \ + /^CC =/d' ${WRKSRC}/config.mk post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/surf |