# Created by: Christopher Knaust # $FreeBSD$ PORTNAME= surf DISTVERSION= 2.0 CATEGORIES= www MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ PKGNAMESUFFIX= -browser MAINTAINER= dg@syrec.org COMMENT= Simple Web browser based on WebKit2/GTK+ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk3 \ libsoup-2.4.so:devel/libsoup RUN_DEPENDS= dmenu:x11/dmenu \ curl:ftp/curl \ xterm:x11/xterm USES= pkgconfig USE_GNOME= gtk30 pango cairo gdkpixbuf2 USE_XORG= x11 CONFLICTS= surf-1* # math/surf PLIST_FILES= bin/surf \ man/man1/surf.1.gz \ share/pixmaps/surf.png PORTDOCS= FAQ.md README TODO.md PORTEXAMPLES= surf-open.sh DESKTOP_ENTRIES="Surf" "" "${PREFIX}/share/pixmaps/surf.png" "surf" "" true OPTIONS_DEFINE= DOCS EXAMPLES pre-everything:: @${ECHO_MSG} "You can build surf with your own config.h using the SURF_CONF knob:" @${ECHO_MSG} "make SURF_CONF=/path/to/surf/config.h install clean" @${ECHO_MSG} "Note: Pre-${PORTVERSION} config.h-files may not work." post-extract: .if defined(SURF_CONF) @${ECHO_MSG} "creating config.h from ${SURF_CONF}" @${LN} -sf ${SURF_CONF} ${WRKSRC}/config.h .endif post-patch: @${REINPLACE_CMD} -e \ '/^PREFIX/s| =| ?=| ; \ /^MANPREFIX/s|/share/man|/man| ; \ /^X11/s|/usr/X11R6/|$${LOCALBASE}/| ; \ /^GTKINC/s| =| ?=| ; \ /^GTKLIB/s| =| ?=| ; \ /^INCS/s|-I/usr/include || ; \ /^LIBS/s|-L/usr/lib -lc || ; \ /^CPPFLAGS/s| =| +=| ; \ /^CFLAGS/s| =| +=| ; \ /^CFLAGS/s|-Os || ; \ /^LDFLAGS/s| =| +=| ; \ /^LDFLAGS/s|-g || ; \ /^CC/s| =| ?=|' ${WRKSRC}/config.mk @${REINPLACE_CMD} -e 's|st -e|xterm -e|' ${WRKSRC}/config.def.h post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/surf ${INSTALL_DATA} ${WRKSRC}/surf.png ${STAGEDIR}${PREFIX}/share/pixmaps post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .include