1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Update to 5.1.0

- Split up gutenprint

You must upgrade gutenprint with one of the following examples

portmaster -o print/gutenprint-base gutenprint
portmaster -u print/gutenprint

or

portupgrade -o print/gutenprint-base gutenprint
portupgrade -u print/gutenprint

Repocopied by:	marcus
This commit is contained in:
Michael Johnson 2007-04-04 15:05:33 +00:00
parent 828b9612fb
commit f44cbd3190
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189196
10 changed files with 160 additions and 25653 deletions

View File

@ -3,14 +3,16 @@
# Whom: dgilbert@velocet.ca
#
# $FreeBSD$
# $MCom: ports/print/gutenprint/Makefile,v 1.3 2006/02/25 00:13:44 marcus Exp $
# $MCom: ports/print/gutenprint-base/Makefile,v 1.8 2007/03/30 16:45:02 ahze Exp $
#
PORTNAME= gutenprint
PORTVERSION= 5.0.0
PORTNAME?= gutenprint
PORTVERSION= 5.1.0
PORTREVISION?= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gimp-print
PKGNAMESUFFIX?= -base
MAINTAINER= ahze@FreeBSD.org
COMMENT= GutenPrint Printer Driver
@ -24,51 +26,84 @@ USE_GMAKE= yes
USE_GNOME= gnomehack gnometarget gtk20
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-gimp=no --with-gimp2=no \
--without-foomatic
INSTALLS_SHLIB= yes
CONFIGURE_ARGS=--with-gimp=no --with-gimp2=no \
--with-mandir=${PREFIX}/man
USE_LDCONFIG= yes
MAN1= escputil.1 ijsgutenprint.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CPPFLAGS= -I${LOCALBASE}/include -I${PREFIX}/include
LDFLAGS= -L${LOCALBASE}/lib -L${PREFIX}/lib
.include <bsd.port.pre.mk>
.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS)
.if ${SLAVE_PORT}=="yes"
LIB_DEPENDS+= gutenprintui2.1:${PORTSDIR}/print/gutenprint-base
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
GUTENPRINTUI2_LIBS=`${PKG_CONFIG} --libs gutenprintui2`
.else
MAN1+= escputil.1
.endif
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="gimp"
LIB_DEPENDS+= gimp-2.0.0:${PORTSDIR}/graphics/gimp-app \
gutenprint.2:${PORTSDIR}/print/gutenprint
CONFIGURE_ARGS=--with-gimp2=yes # Override CONFIGURE_ARGS
BUILD_WRKSRC= ${WRKSRC}/src/gimp2
INSTALL_WRKSRC= ${WRKSRC}/src/gimp2
.else
CONFIGURE_ARGS+=--without-gimp2
.endif
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="cups"
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
RUN_DEPENDS+= espgs:${PORTSDIR}/print/cups-pstoraster
CONFIGURE_ARGS+= --with-cups=${PREFIX}
PLIST_SUB+= CUPS=""
MAN8= cups-calibrate.8 cups-genppd.8 cups-genppdconfig.8 \
CONFIGURE_ARGS+= --with-cups=${PREFIX} \
--enable-cups-ppds \
--enable-cups-level3-ppds
MAN8+= cups-calibrate.8 cups-genppd.8 cups-genppdconfig.8 \
cups-genppdupdate.8
BUILD_WRKSRC= ${WRKSRC}/src/cups
INSTALL_WRKSRC= ${WRKSRC}/src/cups
.else
PLIST_SUB+= CUPS="@comment "
CONFIGURE_ARGS+= --without-cups
.endif
.if defined(WITHOUT_IJS)
PLIST_SUB+= IJS="@comment "
.else
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="ijs"
LIB_DEPENDS+= ijs.1:${PORTSDIR}/print/libijs
CONFIGURE_ARGS+= --with-ijs=yes
PLIST_SUB+= IJS=""
CONFIGURE_ARGS+=--with-ijs=yes
MAN1+= ijsgutenprint.1
BUILD_WRKSRC= ${WRKSRC}/src/ghost
INSTALL_WRKSRC= ${WRKSRC}/src/ghost
.else
CONFIGURE_ARGS+=--without-ghostscript
.endif
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="foomatic"
BUILD_DEPENDS+= foomatic-combo-xml:${PORTSDIR}/print/foomatic-db-engine
RUN_DEPENDS+= foomatic-combo-xml:${PORTSDIR}/print/foomatic-db-engine \
foomatic-db>0:${PORTSDIR}/print/foomatic-db
CONFIGURE_ARGS+=--with-foomatic=yes --with-foomatic3=yes
BUILD_WRKSRC= ${WRKSRC}/src/foomatic
INSTALL_WRKSRC= ${WRKSRC}/src/foomatic
.else
CONFIGURE_ARGS+=--without-foomatic
.endif
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --with-user-guide=no
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG}
@${ECHO_MSG} " WITH_CUPS=yes build with CUPS driver"
@${ECHO_MSG} " WITHOUT_IJS=yes build without IJS-based Ghostscript driver"
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e 's|%%GUTENPRINTUI2_LIBS%%|${GUTENPRINTUI2_LIBS}|' \
${WRKSRC}/src/gimp2/Makefile.in
@${REINPLACE_CMD} -e 's|$$libdir/gimp/1.2/plug-ins||g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@mandir@|${PREFIX}/man|' ${WRKSRC}/man/Makefile.in
@${REINPLACE_CMD} -e 's|= $$(pkglibdir)|= ${PREFIX}/libexec/cups|' \
${WRKSRC}/src/cups/Makefile.in
post-install:
.if ${SLAVE_PORT}=="yes"
@(cd ${WRKSRC}/man && ${GMAKE} ${INSTALL_TARGET})
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (gutenprint-5.0.0.tar.bz2) = ede8acbd1e94c9d4fd366fb37e335bfb
SHA256 (gutenprint-5.0.0.tar.bz2) = 78a5326341f95a584e4d98b7dad7a56fb763211ecfc07f603af6336fa94d07a3
SIZE (gutenprint-5.0.0.tar.bz2) = 4612717
MD5 (gutenprint-5.1.0.tar.bz2) = a31f0519e946fc202c4b9dc5cfec4391
SHA256 (gutenprint-5.1.0.tar.bz2) = 7d9298bbc6ba06d3175f7b4b3060cbc406d9f96a4da965850f8f1ca227b9acf6
SIZE (gutenprint-5.1.0.tar.bz2) = 4704727

View File

@ -1,12 +0,0 @@
--- configure.orig Fri Jun 9 02:03:30 2006
+++ configure Fri Jun 9 02:04:17 2006
@@ -19371,7 +19371,8 @@
min_gtk_version=1.2.0
echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
- no_gtk=""
+ no_gtk=yes
+ GTK_CONFIG=no
if test "$GTK_CONFIG" = "no" ; then
no_gtk=yes
else

View File

@ -0,0 +1,23 @@
--- src/gimp2/Makefile.in.orig Sun Dec 31 22:50:59 2006
+++ src/gimp2/Makefile.in Sun Dec 31 22:51:31 2006
@@ -66,8 +66,7 @@
am_gutenprint_OBJECTS = $(am__objects_1) print-gutenprint.$(OBJEXT)
gutenprint_OBJECTS = $(am_gutenprint_OBJECTS)
am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = \
- $(top_builddir)/src/gutenprintui2/libgutenprintui2.la
+am__DEPENDENCIES_2 =
am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2)
am_print_OBJECTS = $(am__objects_1) print-print.$(OBJEXT)
print_OBJECTS = $(am_print_OBJECTS)
@@ -340,8 +339,8 @@
print_gimp.h
print_SOURCES = $(COMMON_PRINT_SOURCES) print-print.c
-print_LDADD = $(GIMP2_LIBS) $(GUTENPRINTUI2_LIBS)
-print_DEPENDENCIES = $(GUTENPRINTUI2_LIBS) $(GUTENPRINT_LIBS)
+print_LDADD = $(GIMP2_LIBS) %%GUTENPRINTUI2_LIBS%%
+print_DEPENDENCIES =
gutenprint_SOURCES = $(COMMON_PRINT_SOURCES) print-gutenprint.c
gutenprint_LDADD = $(print_LDADD)
gutenprint_DEPENDENCIES = $(print_DEPENDENCIES)

File diff suppressed because it is too large Load Diff

View File

@ -3,72 +3,53 @@
# Whom: dgilbert@velocet.ca
#
# $FreeBSD$
# $MCom: ports/print/gutenprint/Makefile,v 1.3 2006/02/25 00:13:44 marcus Exp $
# $MCom: ports/print/gutenprint/Makefile,v 1.8 2007/04/03 17:42:21 ahze Exp $
#
PORTNAME= gutenprint
PORTVERSION= 5.0.0
PORTVERSION= 5.1
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gimp-print
MASTER_SITES= # empty
DISTFILES= # empty
EXTRACT_ONLY= # empty
MAINTAINER= ahze@FreeBSD.org
COMMENT= GutenPrint Printer Driver
COMMENT= The "meta-port" for GutenPrint
CONFLICTS= gimp-print-[0-9]*
RUN_DEPENDS= gutenprint-base>0:${PORTSDIR}/print/gutenprint-base
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GETOPT_LONG= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gnometarget gtk20
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-gimp=no --with-gimp2=no \
--without-foomatic
INSTALLS_SHLIB= yes
OPTIONS= CUPS "GutenPrint (gimp-print) Cups Drivers" Off \
GIMP "GutenPrint Plugin for the GIMP (gimp-print)" Off \
IJS "IJS GhostScript Drivers" On \
FOOMATIC "Foomatic data files" Off
MAN1= escputil.1 ijsgutenprint.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
NO_BUILD= yes
.include <bsd.port.pre.mk>
.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS)
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
RUN_DEPENDS+= espgs:${PORTSDIR}/print/cups-pstoraster
CONFIGURE_ARGS+= --with-cups=${PREFIX}
PLIST_SUB+= CUPS=""
MAN8= cups-calibrate.8 cups-genppd.8 cups-genppdconfig.8 \
cups-genppdupdate.8
.else
PLIST_SUB+= CUPS="@comment "
CONFIGURE_ARGS+= --without-cups
.if defined(WITH_CUPS)
RUN_DEPENDS+= gutenprint-cups>0:${PORTSDIR}/print/gutenprint-cups
.endif
.if defined(WITHOUT_IJS)
PLIST_SUB+= IJS="@comment "
.else
LIB_DEPENDS+= ijs.1:${PORTSDIR}/print/libijs
CONFIGURE_ARGS+= --with-ijs=yes
PLIST_SUB+= IJS=""
.if defined(WITH_GIMP)
RUN_DEPENDS+= gimp-gutenprint>0:${PORTSDIR}/print/gimp-gutenprint
.endif
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --with-user-guide=no
.if !defined(WITHOUT_IJS)
RUN_DEPENDS+= gutenprint-ijs>0:${PORTSDIR}/print/gutenprint-ijs
.endif
.if defined(WITH_FOOMATIC)
RUN_DEPENDS+= gutenprint-foomatic>0:${PORTSDIR}/print/gutenprint-foomatic
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG}
@${ECHO_MSG} " WITH_CUPS=yes build with CUPS driver"
@${ECHO_MSG} " WITHOUT_IJS=yes build without IJS-based Ghostscript driver"
@${ECHO_MSG}
@if [ -n "`${PKG_INFO} -xI '^gutenprint-[0-9].[0-9].[0-9]*' 2>/dev/null`" ]; then \
${ECHO_CMD} "${PKGNAME}: Old version of gutenprint detected! Please see ${PORTSDIR}/UPDATING for information on upgrading ${PKGNAME}" ; \
${FALSE}; \
fi
post-patch:
@${REINPLACE_CMD} -e 's|$$libdir/gimp/1.2/plug-ins||g' \
${WRKSRC}/configure
do-install: # empty
.include <bsd.port.post.mk>

View File

@ -1,3 +0,0 @@
MD5 (gutenprint-5.0.0.tar.bz2) = ede8acbd1e94c9d4fd366fb37e335bfb
SHA256 (gutenprint-5.0.0.tar.bz2) = 78a5326341f95a584e4d98b7dad7a56fb763211ecfc07f603af6336fa94d07a3
SIZE (gutenprint-5.0.0.tar.bz2) = 4612717

View File

@ -1,12 +0,0 @@
--- configure.orig Fri Jun 9 02:03:30 2006
+++ configure Fri Jun 9 02:04:17 2006
@@ -19371,7 +19371,8 @@
min_gtk_version=1.2.0
echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
- no_gtk=""
+ no_gtk=yes
+ GTK_CONFIG=no
if test "$GTK_CONFIG" = "no" ; then
no_gtk=yes
else

View File

@ -1,3 +1,5 @@
The "meta-port" for GutenPrint
High quality drivers for Canon, Epson, Lexmark, and PCL printers
for use with Ghostscript, CUPS, Foomatic, and the Gimp

File diff suppressed because it is too large Load Diff