|
Lines 1-45
Link Here
|
| 1 |
# New ports collection makefile for: sane-backends |
1 |
# Created by: gary@hotlava.com |
| 2 |
# Date created: Sat Jul 19 16:23:10 MET DST 1997 |
|
|
| 3 |
# Whom: gary@hotlava.com |
| 4 |
# |
| 5 |
# $FreeBSD: ports/graphics/sane-backends/Makefile,v 1.106 2012/06/27 10:35:47 ale Exp $ |
2 |
# $FreeBSD: ports/graphics/sane-backends/Makefile,v 1.106 2012/06/27 10:35:47 ale Exp $ |
| 6 |
# |
|
|
| 7 |
|
3 |
|
| 8 |
PORTNAME= sane-backends |
4 |
PORTNAME= sane-backends |
| 9 |
PORTVERSION= 1.0.22 |
5 |
PORTVERSION= 1.0.23 |
| 10 |
PORTREVISION= 2 |
|
|
| 11 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
| 12 |
MASTER_SITES= http://alioth.debian.org/frs/download.php/3503/ \ |
7 |
MASTER_SITES= http://alioth.debian.org/frs/download.php/3752/:3752 \ |
| 13 |
ftp://ftp2.sane-project.org/pub/sane/%SUBDIR%/ |
8 |
http://alioth.debian.org/frs/download.php/3753/:3753 \ |
| 14 |
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION} |
9 |
http://alioth.debian.org/frs/download.php/3754/:3754 |
|
|
10 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}.1:3752 \ |
| 11 |
${DISTNAME}${EXTRACT_SUFX}.2:3753 \ |
| 12 |
${DISTNAME}${EXTRACT_SUFX}.3:3754 |
| 13 |
EXTRACT_ONLY= # need to concatenate before extraction |
| 15 |
|
14 |
|
| 16 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
| 17 |
COMMENT= API for access to scanners, digitals camera, frame grabbers etc |
16 |
COMMENT= API for access to scanners, digitals camera, frame grabbers etc |
| 18 |
|
17 |
|
| 19 |
LICENSE= GPLv2 GPLv3 |
18 |
LICENSE= GPLv2 # (or later) |
| 20 |
LICENSE_COMB= dual |
|
|
| 21 |
|
19 |
|
| 22 |
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ |
20 |
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ |
| 23 |
tiff.4:${PORTSDIR}/graphics/tiff |
21 |
tiff:${PORTSDIR}/graphics/tiff |
| 24 |
|
|
|
| 25 |
OPTIONS_DEFINE= USB NLS GPHOTO2 SNMP AVAHI IEEE1284 IPV6 DOCS |
| 26 |
OPTIONS_DEFAULT= USB |
| 27 |
|
22 |
|
|
|
23 |
OPTIONS_DEFINE= USB NLS GPHOTO2 SNMP AVAHI IEEE1284 IPV6 CUPS DOCS |
| 24 |
OPTIONS_DEFAULT=USB |
| 28 |
USB_DESC= USB support |
25 |
USB_DESC= USB support |
| 29 |
GPHOTO2_DESC= gPhoto2 support |
26 |
GPHOTO2_DESC= gPhoto2 support |
| 30 |
IEEE1284_DESC= libieee1284 support |
27 |
IEEE1284_DESC= libieee1284 support |
| 31 |
|
28 |
|
|
|
29 |
USE_GNOME= gnomehack |
| 30 |
USE_PKGCONFIG= build |
| 32 |
USE_GMAKE= yes |
31 |
USE_GMAKE= yes |
| 33 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
| 34 |
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} \ |
33 |
CONFIGURE_ARGS= --with-docdir=${WRKDIR}/tmproot \ |
| 35 |
--disable-latex \ |
34 |
--disable-latex \ |
| 36 |
--disable-locking \ |
35 |
--disable-locking \ |
| 37 |
--enable-pthread |
36 |
--enable-pthread |
| 38 |
USE_LDCONFIG= yes |
37 |
USE_LDCONFIG= yes |
| 39 |
MAKE_JOBS_UNSAFE= yes |
38 |
MAKE_JOBS_SAFE= yes |
| 40 |
|
39 |
|
| 41 |
USE_RC_SUBR= saned |
40 |
USE_RC_SUBR= saned |
| 42 |
SUB_FILES+= pkg-message |
41 |
SUB_FILES= pkg-message |
| 43 |
|
42 |
|
| 44 |
USERS= saned |
43 |
USERS= saned |
| 45 |
GROUPS= saned |
44 |
GROUPS= saned |
|
Lines 50-62
Link Here
|
| 50 |
.include "Makefile.man" |
49 |
.include "Makefile.man" |
| 51 |
.include <bsd.port.pre.mk> |
50 |
.include <bsd.port.pre.mk> |
| 52 |
|
51 |
|
| 53 |
.if empty(PORT_OPTIONS:MDOCS) |
|
|
| 54 |
MAKE_ENV+= NOPORTDOCS=1 |
| 55 |
.endif |
| 56 |
|
| 57 |
.if ${PORT_OPTIONS:MUSB} |
52 |
.if ${PORT_OPTIONS:MUSB} |
| 58 |
.if ${OSVERSION} < 800069 |
53 |
.if ${OSVERSION} < 800069 |
| 59 |
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb |
54 |
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb |
| 60 |
.endif |
55 |
.endif |
| 61 |
.else |
56 |
.else |
| 62 |
CONFIGURE_ARGS+= --disable-libusb |
57 |
CONFIGURE_ARGS+= --disable-libusb |
|
Lines 75-81
Link Here
|
| 75 |
.endif |
70 |
.endif |
| 76 |
|
71 |
|
| 77 |
.if ${PORT_OPTIONS:MGPHOTO2} |
72 |
.if ${PORT_OPTIONS:MGPHOTO2} |
| 78 |
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/libgphoto2 |
73 |
LIB_DEPENDS+= gphoto2:${PORTSDIR}/graphics/libgphoto2 |
| 79 |
MAN5+= sane-gphoto2.5 |
74 |
MAN5+= sane-gphoto2.5 |
| 80 |
PLIST_SUB+= GPHOTO2="" |
75 |
PLIST_SUB+= GPHOTO2="" |
| 81 |
.else |
76 |
.else |
|
Lines 84-112
Link Here
|
| 84 |
.endif |
79 |
.endif |
| 85 |
|
80 |
|
| 86 |
.if ${PORT_OPTIONS:MSNMP} |
81 |
.if ${PORT_OPTIONS:MSNMP} |
| 87 |
LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp |
82 |
LIB_DEPENDS+= netsnmp:${PORTSDIR}/net-mgmt/net-snmp |
| 88 |
.else |
83 |
.else |
| 89 |
CONFIGURE_ARGS+= --without-snmp |
84 |
CONFIGURE_ARGS+= --without-snmp |
| 90 |
.endif |
85 |
.endif |
| 91 |
|
86 |
|
| 92 |
.if ${PORT_OPTIONS:MAVAHI} |
87 |
.if ${PORT_OPTIONS:MAVAHI} |
| 93 |
LIB_DEPENDS+= avahi-client.3:${PORTSDIR}/net/avahi-app |
88 |
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app |
| 94 |
CONFIGURE_ARGS+= --enable-avahi |
89 |
CONFIGURE_ARGS+= --enable-avahi |
| 95 |
.endif |
90 |
.endif |
| 96 |
|
91 |
|
| 97 |
.if ${PORT_OPTIONS:MIEEE1284} |
92 |
.if ${PORT_OPTIONS:MIEEE1284} |
| 98 |
LIB_DEPENDS+= ieee1284.5:${PORTSDIR}/sysutils/libieee1284 |
93 |
LIB_DEPENDS+= ieee1284:${PORTSDIR}/sysutils/libieee1284 |
| 99 |
PLIST_SUB+= IEEE1284="" |
94 |
PLIST_SUB+= IEEE1284="" |
|
|
95 |
MAN5+= sane-canon_pp.5 sane-hpsj5s.5 sane-mustek_pp.5 |
| 100 |
.else |
96 |
.else |
| 101 |
CONFIGURE_ENV+= sane_cv_use_libieee1284=no |
97 |
CONFIGURE_ENV+= sane_cv_use_libieee1284=no |
| 102 |
PLIST_SUB+= IEEE1284="@comment " |
98 |
PLIST_SUB+= IEEE1284="@comment " |
| 103 |
.endif |
99 |
.endif |
| 104 |
|
100 |
|
|
|
101 |
.if ${PORT_OPTIONS:MCUPS} |
| 102 |
LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-client |
| 103 |
.else |
| 104 |
CONFIGURE_ENV+= ac_cv_header_cups_cups_h=no |
| 105 |
.endif |
| 106 |
|
| 107 |
post-extract: |
| 108 |
@((cd ${DISTDIR} && ${CAT} ${DISTFILES:C/:[^:]+$//}) | (cd ${WRKDIR} \ |
| 109 |
&& ${EXTRACT_CMD} ${EXTRACT_BEFOR_ARGS} ${EXTRACT_AFTER_ARGS})) |
| 110 |
|
| 105 |
post-patch: |
111 |
post-patch: |
| 106 |
@${REINPLACE_CMD} -e '/^for ac_header in/s|libc.h||g ; \ |
112 |
@${REINPLACE_CMD} -e '/^for ac_header in/s|libc.h|cups/cups.h| ; \ |
| 107 |
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
113 |
s|-e .*/cups.h|"$$ac_cv_header_cups_cups_h" = "yes"| ; \ |
|
|
114 |
s|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/configure |
| 115 |
@${REINPLACE_CMD} -e '/^dist_doc_DATA/s|COPYING||' \ |
| 116 |
${WRKSRC}/Makefile.in |
| 117 |
@${REINPLACE_CMD} -e '/^pkgconfigdir/s|@libdir@|@prefix@/libdata|' \ |
| 118 |
${WRKSRC}/tools/Makefile.in |
| 108 |
|
119 |
|
| 109 |
post-install: |
120 |
post-install: |
|
|
121 |
.if ${PORT_OPTIONS:MDOCS} |
| 122 |
@${MKDIR} ${DOCSDIR} |
| 123 |
@(cd ${WRKDIR}/tmproot && ${COPYTREE_SHARE} . ${DOCSDIR}) |
| 124 |
.endif |
| 110 |
@${CAT} ${PKGMESSAGE} |
125 |
@${CAT} ${PKGMESSAGE} |
| 111 |
|
126 |
|
| 112 |
.include <bsd.port.post.mk> |
127 |
.include <bsd.port.post.mk> |