1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/www/surf/Makefile
Tobias Kortkamp c4df193039 www/webkit2-gtk3: Update to 2.20.0
- Add WAYLAND option
- Bump PORTREVISION of dependents
- Fix build of epiphany 3.24.2 with newer WebKit versions

PR:		223733
Submitted by:	Greg V <greg@unrelenting.technology> (initial update to 2.18.3)
Reviewed by:	Ting-Wei Lan <lantw44@gmail.com>
Approved by:	gnome (maintainer timeout, too long)
Security:	1ce95bc7-3278-11e8-b527-00012e582166
MFH:		2018Q2
Differential Revision:	https://reviews.freebsd.org/D14872
2018-04-05 20:13:48 +00:00

80 lines
2.1 KiB
Makefile

# Created by: Christopher Knaust <jigboe@gmx.de>
# $FreeBSD$
PORTNAME= surf
DISTVERSION= 2.0
PORTREVISION= 1
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 <bsd.port.mk>