2002-03-19 17:57:19 +01:00
|
|
|
# New ports collection makefile for: libgnomeprint
|
1999-01-17 21:19:18 +01:00
|
|
|
# Date created: 15 Jan 1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Vanilla I. Shu <vanilla@FreeBSD.org>
|
1999-01-17 21:19:18 +01:00
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
2009-01-10 06:22:13 +01:00
|
|
|
# $MCom: ports/print/libgnomeprint/Makefile,v 1.73 2008/09/22 13:55:39 kwm Exp $
|
1999-01-17 21:19:18 +01:00
|
|
|
#
|
2008-01-31 04:51:03 +01:00
|
|
|
# NOTE: Remind to update comms/gfax plist when PORTVERSION change.
|
1999-01-17 21:19:18 +01:00
|
|
|
|
2002-03-19 17:57:19 +01:00
|
|
|
PORTNAME= libgnomeprint
|
2009-01-10 06:22:13 +01:00
|
|
|
PORTVERSION= 2.18.5
|
1999-02-02 15:17:53 +01:00
|
|
|
CATEGORIES= print gnome
|
2003-12-09 03:50:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
2002-03-19 17:57:19 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
1999-01-17 21:19:18 +01:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Gnome print support library
|
1999-01-17 21:19:18 +01:00
|
|
|
|
2006-05-10 20:36:55 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
.if !defined(REFERENCE_PORT)
|
|
|
|
|
2005-05-21 21:51:41 +02:00
|
|
|
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
popt.0:${PORTSDIR}/devel/popt
|
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
1999-01-17 21:19:18 +01:00
|
|
|
USE_GMAKE= yes
|
2005-05-21 21:51:41 +02:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehack gnomehier glib20 pango libxml2 \
|
2005-11-05 05:53:48 +01:00
|
|
|
libartlgpl2 ltverhack
|
2006-05-16 00:23:04 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-10-14 10:35:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2001-11-20 15:18:25 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2003-06-26 19:49:39 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
1999-01-17 21:19:18 +01:00
|
|
|
|
2004-11-07 23:24:32 +01:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION} \
|
|
|
|
LIBVERSION=2.2
|
2003-02-07 19:42:25 +01:00
|
|
|
|
2003-06-26 19:49:39 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-12 22:41:07 +01:00
|
|
|
.if (defined(WITH_CUPS) || exists(${LOCALBASE}/lib/libcups.so)) && !defined(WITHOUT_CUPS)
|
2003-06-26 19:49:39 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cups
|
2004-11-07 23:24:32 +01:00
|
|
|
LIB_DEPENDS+= gnomecups-1.0:${PORTSDIR}/print/libgnomecups
|
2003-06-26 19:49:39 +02:00
|
|
|
PLIST_SUB+= CUPS:=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-cups
|
|
|
|
PLIST_SUB+= CUPS:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-05 05:53:48 +01:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_CUPS)
|
|
|
|
@${ECHO_MSG} " Enable cups support by defining"
|
|
|
|
@${ECHO_MSG} " WITH_CUPS"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2002-07-29 07:27:52 +02:00
|
|
|
post-patch:
|
2003-06-18 22:13:35 +02:00
|
|
|
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
|
2002-07-11 17:31:46 +02:00
|
|
|
's|<malloc[.]h>|<stdlib.h>|'
|
2003-06-18 22:13:35 +02:00
|
|
|
@${REINPLACE_CMD} -e "/^SUBDIRS =/s|tests||" ${WRKSRC}/Makefile.in
|
2006-05-10 20:36:55 +02:00
|
|
|
@${REINPLACE_CMD} -e "/^SUBDIRS =/s|doc||" ${WRKSRC}/Makefile.in
|
2001-12-17 10:03:07 +01:00
|
|
|
|
2002-05-14 23:06:02 +02:00
|
|
|
post-install:
|
2002-05-21 12:41:35 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts
|
2002-05-14 23:06:02 +02:00
|
|
|
@${TOUCH} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts/gnome-print.fontmap
|
|
|
|
|
2003-06-26 19:49:39 +02:00
|
|
|
.include <bsd.port.post.mk>
|
2006-05-10 20:36:55 +02:00
|
|
|
|
|
|
|
.endif
|