1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/netsurf/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

54 lines
1.4 KiB
Makefile

# New ports collection makefile for: netsurf
# Date created: 17 August 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= netsurf
PORTVERSION= 1.1
DISTVERSIONSUFFIX= -src
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.netsurf-browser.org/download/ CENKES
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= A lightweight web browser
BUILD_DEPENDS= lemon:${PORTSDIR}/devel/lemon \
re2c:${PORTSDIR}/devel/re2c
LIB_DEPENDS= mng.1:${PORTSDIR}/graphics/libmng \
curl.4:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
USE_GNOME= libglade2 libxml2
MAKEFILE= makefile
ALL_TARGET= gtk
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
MAKE_ARGS= CC="${CC}" SYSTEM_CC="${CC}" WARNFLAGS=
post-extract:
@cd ${WRKSRC}/gtk/&&${CP} -RL res resderef
@cd ${WRKSRC}/&&${MV} ChangeLog ReadMe Docs/
post-patch:
@${REINPLACE_CMD} -e 's| @| |;s|-O |$${CFLAGS}|'\
${WRKSRC}/makefile
pre-build:
@${LN} -sf ${LOCALBASE}/share/lemon/lempar.c ${WRKSRC}/css/
@${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/${PORTNAME}
@${ECHO_CMD} 'export NETSURFRES=${DATADIR}/;exec ${PREFIX}/libexec/${PORTNAME}'\
>> ${WRKSRC}/${PORTNAME}
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/nsgtk ${PREFIX}/libexec/${PORTNAME}
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@cd ${WRKSRC}/gtk/resderef/&&${COPYTREE_SHARE} . ${DATADIR}/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/Docs/&&${INSTALL_DATA} * ${DOCSDIR}/
.endif
.include <bsd.port.mk>