1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/graphics/sane-backends/Makefile

52 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sane-backends
# Date created: Sat Jul 19 16:23:10 MET DST 1997
# Whom: gary@hotlava.com
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
PORTNAME= sane-backends
2002-10-25 20:00:21 +00:00
PORTVERSION= 1.0.9
2002-12-08 23:51:20 +00:00
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.mostang.com/pub/sane/%SUBDIR%/ \
ftp://ftp.de.mostang.com/pub/sane/%SUBDIR%/ \
ftp://ftp.no.mostang.com/pub/sane/%SUBDIR%/
MASTER_SITE_SUBDIR= sane-${PORTVERSION}
2001-02-05 15:57:19 +00:00
MAINTAINER= ports@FreeBSD.org
2002-12-08 23:51:20 +00:00
LIB_DEPENDS= usb-0.1.7:${PORTSDIR}/devel/libusb \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
INSTALLS_SHLIB= yes
.if defined(WITH_GPHOTO2)
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/gphoto2
CONFIGURE_ARGS+= --with-gphoto2=yes
PLIST_SUB+= GPHOTO2=""
.else
PLIST_SUB+= GPHOTO2="@comment "
.endif
pre-everything::
.if !defined(WITH_GPHOTO2)
@${ECHO_MSG}
@${ECHO_MSG} "If you want to compile with gPhoto2 support,"
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GPHOTO2=yes\""
@${ECHO_MSG}
.endif
post-patch:
@${REINPLACE_CMD} -e 's| -I/usr/local/include||g ; \
s|gphoto2 2.0.1|gphoto2 2.0|g' ${WRKSRC}/configure
.include "Makefile.man"
.include <bsd.port.mk>