aboutsummaryrefslogtreecommitdiffstats
path: root/www/surf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/surf/Makefile')
-rw-r--r--www/surf/Makefile29
1 files changed, 22 insertions, 7 deletions
diff --git a/www/surf/Makefile b/www/surf/Makefile
index 221216cae712..0efa74110599 100644
--- a/www/surf/Makefile
+++ b/www/surf/Makefile
@@ -2,23 +2,30 @@
# $FreeBSD$
PORTNAME= surf
-PORTVERSION= 0.4.1
-PORTREVISION= 2
+PORTVERSION= 0.6
CATEGORIES= www
MASTER_SITES= http://dl.suckless.org/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple Web browser based on WebKit/Gtk+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+OPTIONS_DEFINE= DOCS
+
LIB_DEPENDS= webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu
+USE_CSTD= c99
USE_GNOME= gtk20
USE_PKGCONFIG= yes
MAN1= surf.1
-PLIST_FILES= bin/surf
-PORTDOCS= LICENSE README
+PORTDOCS= README
+PLIST_FILES= bin/surf share/pixmaps/surf.png
+
+DESKTOP_ENTRIES="Surf" "" "${PREFIX}/share/pixmaps/surf.png" "surf" "" true
CONFLICTS= surf-1* # math/surf
@@ -37,12 +44,20 @@ post-extract:
@${CP} ${SURF_CONF} ${WRKSRC}/config.h
.endif
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^\(PREFIX\)|#\1| ; \
+ s|/share/man|/man| ; \
+ s|^\(CFLAGS\) =.*|\1 += -I. $${GTKINC} $${CPPFLAGS}| ; \
+ s|^\(LDFLAGS\) =.*|\1 += $${GTKLIB}| ; \
+ s|^\(CC\)|#\1|' ${WRKSRC}/config.mk
+
post-install:
+ @${STRIP_CMD} ${PREFIX}/bin/surf
+ (cd ${WRKSRC} && ${INSTALL_DATA} surf.png ${PREFIX}/share/pixmaps)
.if ${PORT_OPTIONS:MDOCS}
- @${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
- @${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR}
- @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} README ${DOCSDIR})
.endif
.include <bsd.port.mk>
itetcu2008-05-061-1/+1 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-0/+2 * Reset relaxbsd@gmail.com due to maintainer-timeouts.linimon2008-03-021-1/+1