Tweak sysutils/pidof version 20050501
[dports.git] / sysutils / scanbuttond / Makefile
1 # Created by: Daniel Thiele
2 # $FreeBSD$
3
4 PORTNAME=       scanbuttond
5 PORTVERSION=    0.2.3
6 PORTREVISION=   2
7 CATEGORIES=     sysutils
8 MASTER_SITES=   SF
9
10 MAINTAINER=     dthiele@gmx.net
11 COMMENT=        Daemon to monitor and configure modern scanner's buttons
12
13 LICENSE=        GPLv2
14
15 USES=           libtool
16 GNU_CONFIGURE=  yes
17 CPPFLAGS+=      -I${LOCALBASE}/include
18 LDFLAGS+=       -L${LOCALBASE}/lib
19 USE_LDCONFIG=   yes
20 INSTALL_TARGET= install-strip
21
22 SUB_FILES+=     pkg-message
23
24 pre-configure:
25         @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
26                 ${REINPLACE_CMD} -e 's|-ldl||g'
27
28 pre-install:
29         @if [ -f ${WRKSRC}/scripts/buttonpressed.sh ]; then \
30                 for na in buttonpressed.sh initscanner.sh; do \
31                         ${MV} ${WRKSRC}/scripts/$$na ${WRKSRC}/scripts/$$na.sample ; \
32                 done; \
33                 ${REINPLACE_CMD} -e 's|\.sh|.sh.sample|g' ${WRKSRC}/scripts/Makefile ; \
34                 ${MV} ${WRKSRC}/backends/meta.conf ${WRKSRC}/backends/meta.conf.sample ; \
35                 ${REINPLACE_CMD} -e 's|meta\.conf|meta.conf.sample|g' ${WRKSRC}/backends/Makefile ; \
36         fi
37
38 .include <bsd.port.mk>