freebsd-ports/editors/gphpedit/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: gphpedit
# Date created: 2004-11-21
# Whom: Roman Bogorodskiy <bogorodskiy@inbox.ru>
#
# $FreeBSD$
#
PORTNAME= gphpedit
PORTVERSION= 0.9.50
PORTREVISION= 2
CATEGORIES= editors gnome
MASTER_SITES= http://www.gphpedit.org/download/store/ \
http://ftp.ceid.upatras.gr/pub/linux/gentoo/distfiles/ \
http://www.jolupatech.info/crux/gphpedit/
MAINTAINER= novel@FreeBSD.org
COMMENT= PHP, HTML and CSS development environment for GNOME 2.x
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack libgnomeui libgtkhtml
USE_X_PREFIX= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !defined(WITHOUT_PHP)
USE_PHP= yes
WANT_PHP_CLI= yes
.endif
.if !defined(WITHOUT_PHPDOC)
RUN_DEPENDS+= ${LOCALBASE}/share/doc/php-en/about.html:${PORTSDIR}/lang/php_doc
.endif
pre-everything::
.if !defined(WITHOUT_PHP) || !defined(WITHOUT_PHPDOC)
@${ECHO_MSG} "You may specify the following on the command line:"
@${ECHO_MSG} " "
.endif
.if !defined(WITHOUT_PHP)
@${ECHO_MSG} "WITHOUT_PHP=yes to not install php, debug script will not work without it."
.endif
.if !defined(WITHOUT_PHPDOC)
@${ECHO_MSG} "WITHOUT_PHPDOC=yes to not install php_doc, help will be disable."
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share/gnome|g' \
${WRKSRC}/src/main.h
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share/gnome|g' \
${WRKSRC}/src/calltip.c ${WRKSRC}/src/main_window.c
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/src/tab.c
.include <bsd.port.mk>