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$
|
2010-11-20 16:37:08 +01:00
|
|
|
# $MCom: ports/print/libgnomeprint/Makefile,v 1.77 2010/09/28 16:38:29 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
|
2010-11-20 16:37:08 +01:00
|
|
|
PORTVERSION= 2.18.8
|
1999-02-02 15:17:53 +01:00
|
|
|
CATEGORIES= print gnome
|
2009-02-02 02:36:16 +01:00
|
|
|
MASTER_SITES= GNOME
|
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
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
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
|