Conditionalize CUPS support to fix the make package on bento.
Reported by: bento via kris
This commit is contained in:
parent
2aa243bd67
commit
327b7e5a8b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83687
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libgnomeprint
|
||||
PORTVERSION= 2.2.1.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= print gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.2
|
||||
@ -23,10 +24,25 @@ USE_GNOME= gnomeprefix gnomehack gnomehier libbonobo libartlgpl2 gtk20
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_LIBTOOL= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
PLIST_SUB= VERSION=${PORTVERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libcups.so)
|
||||
WITH_CUPS= yes
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS)
|
||||
CONFIGURE_ARGS+= --with-cups
|
||||
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
||||
PLIST_SUB+= CUPS:=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-cups
|
||||
PLIST_SUB+= CUPS:="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|<malloc[.]h>|<stdlib.h>|'
|
||||
@ -36,4 +52,4 @@ post-install:
|
||||
@${MKDIR} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts
|
||||
@${TOUCH} ${PREFIX}/etc/gnome/libgnomeprint-2.0/fonts/gnome-print.fontmap
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -31,9 +31,9 @@ include/libgnomeprint-2.2/libgnomeprint/private/gpa-utils.h
|
||||
lib/libgnomeprint-2-2.a
|
||||
lib/libgnomeprint-2-2.so
|
||||
lib/libgnomeprint-2-2.so.0
|
||||
lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.a
|
||||
lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.so
|
||||
lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.so.0
|
||||
%%CUPS:%%lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.a
|
||||
%%CUPS:%%lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.so
|
||||
%%CUPS:%%lib/libgnomeprint/%%VERSION%%/modules/libgnomeprintcups.so.0
|
||||
lib/libgnomeprint/%%VERSION%%/modules/transports/libgnomeprint-custom.so
|
||||
lib/libgnomeprint/%%VERSION%%/modules/transports/libgnomeprint-file.so
|
||||
lib/libgnomeprint/%%VERSION%%/modules/transports/libgnomeprint-lpr.so
|
||||
|
Loading…
Reference in New Issue
Block a user