2013-03-08 12:32:11 +01:00
|
|
|
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
|
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
|
|
|
|
2002-03-19 17:57:19 +01:00
|
|
|
PORTNAME= libgnomeprint
|
2010-11-20 16:37:08 +01:00
|
|
|
PORTVERSION= 2.18.8
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
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)
|
|
|
|
|
2013-12-06 19:57:55 +01:00
|
|
|
LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
libpopt.so:${PORTSDIR}/devel/popt
|
2005-05-21 21:51:41 +02:00
|
|
|
|
2013-09-02 18:21:38 +02:00
|
|
|
USES= bison pathfix gettext gmake pkgconfig
|
2013-03-08 12:32:11 +01:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehier glib20 pango libxml2 \
|
2005-11-05 05:53:48 +01:00
|
|
|
libartlgpl2 ltverhack
|
2006-10-14 10:35:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
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
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
OPTIONS_DEFINE= CUPS
|
|
|
|
OPTIONS_DEFAULT=CUPS
|
2012-05-20 18:48:35 +02:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2003-06-26 19:49:39 +02:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MCUPS}
|
2003-06-26 19:49:39 +02:00
|
|
|
CONFIGURE_ARGS+= --with-cups
|
2013-12-06 19:57:55 +01:00
|
|
|
LIB_DEPENDS+= libgnomecups-1.0.so:${PORTSDIR}/print/libgnomecups
|
2003-06-26 19:49:39 +02:00
|
|
|
PLIST_SUB+= CUPS:=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-cups
|
|
|
|
PLIST_SUB+= CUPS:="@comment "
|
|
|
|
.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:
|
2013-12-06 19:57:55 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts
|
|
|
|
@${TOUCH} ${STAGEDIR}${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts/gnome-print.fontmap
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnomeprint-2-2.so.0
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnomeprint/2.18.8/modules/*.so
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnomeprint/2.18.8/modules/*/*.so
|
2002-05-14 23:06:02 +02:00
|
|
|
|
2013-03-19 11:40:22 +01:00
|
|
|
.include <bsd.port.mk>
|
2006-05-10 20:36:55 +02:00
|
|
|
|
|
|
|
.endif
|