aboutsummaryrefslogtreecommitdiffstats
path: root/www/surf
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-08-26 22:06:08 +0800
committertijl <tijl@FreeBSD.org>2014-08-26 22:06:08 +0800
commitf8357b5cbaa160ccdf9943cac099f5e092c591da (patch)
treed0c8617b772b8f0a175d436d938b8d844590b41f /www/surf
parent89a7d6ecbdde724b92ca6650493f56cf68855f35 (diff)
downloadfreebsd-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/Makefile16
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