freebsd-ports/editors/gnotepad+/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

55 lines
1.2 KiB
Makefile

# New ports collection makefile for: gnotepad+
# Date created: 08 March 1999
# Whom: brett@peloton.physics.montana.edu
#
# $FreeBSD$
#
PORTNAME= gnotepad+
PORTVERSION= 1.3.3
PORTREVISION= 1
CATEGORIES= editors www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gnotepad
.if !defined(NOPORTDOCS)
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-help-${DOCVERSION}${EXTRACT_SUFX}
.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple GTK-based text/HTML editor
DOCVERSION= 1.2.0
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_XPM= yes
WANT_GNOME= yes
USE_GNOME= gtk12
USE_LIBTOOL_VER=13
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
MAN1= gnp.1
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|\(use_gtkhtml=\)yes|\1no|g' ${WRKSRC}/configure
.if !defined(NOPORTDOCS)
post-extract:
@${MV} ${WRKSRC}/docs ${WRKSRC}/docs.old
@${CP} -R ${WRKDIR}/${PORTNAME}-help-${DOCVERSION}/docs ${WRKSRC}/docs
.endif
.if ${HAVE_GNOME:Mgnomelibs}!=""
USE_GNOME= gnomeprefix gnomelibs
PKGNAMESUFFIX= -gnome
PLIST_SUB= DATADIR="share/gnome"
.else
CONFIGURE_ARGS+=--disable-gnome
PLIST_SUB= DATADIR="share"
.endif
.include <bsd.port.post.mk>