2006-06-06 20:06:50 +02:00
|
|
|
# New ports collection makefile for: scanbuttond
|
|
|
|
# Date created: 31 March 2006
|
|
|
|
# Whom: Daniel Thiele
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scanbuttond
|
|
|
|
PORTVERSION= 0.2.3
|
2011-07-28 23:56:21 +02:00
|
|
|
PORTREVISION= 1
|
2006-06-06 20:06:50 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF
|
2006-06-06 20:06:50 +02:00
|
|
|
|
|
|
|
MAINTAINER= dthiele@gmx.net
|
|
|
|
COMMENT= A daemon to monitor and configure modern scanner's buttons
|
|
|
|
|
2011-07-28 23:56:21 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-06-06 20:06:50 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2009-03-25 12:44:37 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-06-06 20:06:50 +02:00
|
|
|
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800069
|
|
|
|
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
|
|
|
|
.endif
|
|
|
|
|
2006-06-06 20:06:50 +02:00
|
|
|
pre-configure:
|
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|-ldl||g'
|
2011-07-28 23:56:21 +02:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@if [ -f ${WRKSRC}/scripts/buttonpressed.sh ]; then \
|
|
|
|
for na in buttonpressed.sh initscanner.sh; do \
|
|
|
|
${MV} ${WRKSRC}/scripts/$$na ${WRKSRC}/scripts/$$na.sample ; \
|
|
|
|
done; \
|
|
|
|
${REINPLACE_CMD} -e 's|\.sh|.sh.sample|g' ${WRKSRC}/scripts/Makefile ; \
|
|
|
|
${MV} ${WRKSRC}/backends/meta.conf ${WRKSRC}/backends/meta.conf.sample ; \
|
|
|
|
${REINPLACE_CMD} -e 's|meta\.conf|meta.conf.sample|g' ${WRKSRC}/backends/Makefile ; \
|
|
|
|
fi
|
|
|
|
|
2006-06-06 20:06:50 +02:00
|
|
|
post-install:
|
2011-07-28 23:56:21 +02:00
|
|
|
@for na in buttonpressed.sh initscanner.sh meta.conf; do \
|
|
|
|
if [ ! -f ${ETCDIR}/$$na ]; then \
|
|
|
|
${CP} -p ${ETCDIR}/$$na.sample ${ETCDIR}/$$na; \
|
|
|
|
fi; \
|
|
|
|
done
|
2006-06-06 20:06:50 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.include <bsd.port.post.mk>
|