aboutsummaryrefslogtreecommitdiff
path: root/sysutils/samesame/Makefile
diff options
context:
space:
mode:
authorDennis Herrmann <dhn@FreeBSD.org>2009-05-25 19:56:45 +0000
committerDennis Herrmann <dhn@FreeBSD.org>2009-05-25 19:56:45 +0000
commit6043bde2c6f4cc242715752c30756aa8059681b7 (patch)
treef9c9e01030269efe7cbe632f32c84fc29c830fae /sysutils/samesame/Makefile
parent74ea540934241ef982353fc4e544c442c996c6a9 (diff)
downloadports-6043bde2c6f4cc242715752c30756aa8059681b7.tar.gz
ports-6043bde2c6f4cc242715752c30756aa8059681b7.zip
Notes
Diffstat (limited to 'sysutils/samesame/Makefile')
-rw-r--r--sysutils/samesame/Makefile40
1 files changed, 25 insertions, 15 deletions
diff --git a/sysutils/samesame/Makefile b/sysutils/samesame/Makefile
index 2145655607e1..39eab068228d 100644
--- a/sysutils/samesame/Makefile
+++ b/sysutils/samesame/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= samesame
-PORTVERSION= 1.0
+PORTVERSION= 1.1
CATEGORIES= sysutils
MASTER_SITES= http://www.akruijff.dds.nl/samesame/ \
${MASTER_SITE_LOCAL}
@@ -18,16 +18,22 @@ CONFLICTS= samefile-[0-9]*
MAN1= samearchive.1 samearchive-lite.1 samefile.1 samelink.1
MANCOMPRESSED= yes
-PLIST_FILES= bin/samearchive \
- bin/samearchive-lite \
- bin/samefile \
- bin/samelink
+PLIST_FILES= bin/samearchive bin/samefile \
+ bin/samearchive-lite bin/samelink \
+ etc/rc.d/samesame.sh
USE_BZIP2= yes
OPTIONS= DEBUG "Enables debugging support" Off \
DISK_STORAGE "Allow temporarily storage paths on disk" On \
- LOGIC "Determine results by using logic when posible" On
+ LOGIC "Determine results by using logic when posible" On \
+ TEST "Run quality assurance test" On
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 800064
+BROKEN= does not build
+.endif
.if defined(WITH_DEBUG)
CFLAGS+= -DDEBUG
@@ -37,8 +43,8 @@ CFLAGS+= -DDEBUG
CFLAGS+= -DWITH_DISK_STORAGE
.endif
-.if defined(WITH_LOGIC)
-CFLAGS+= -DWITH_LOGIC
+.if defined(WITHOUT_LOGIC)
+CFLAGS+= -DWITHOUT_LOGIC
.endif
CFLAGS+= -DWITH_MMAP
@@ -46,17 +52,21 @@ CFLAGS+= -D'TEMP_STORAGE_DIR=\"/tmp\"'
CFLAGS+= -DPATH_INIT=256
CFLAGS+= -DSTATIC_CACHE_CAPACITY=8192
-post-patch:
- @${REINPLACE_CMD} -e '/^install/s|test-samefile||g' \
- -e '/^install/s|test-samelink||g' \
- -e '/^install/s|test-samearchive-lite||g' \
- -e '/^install/s|test-samearchive||g' ${WRKSRC}/Makefile
+post-build:
+.if defined(WITH_TEST)
+ cd ${WRKSRC}; ${MAKE} test
+.endif
+
+pre-install:
+.if defined(WITH_TEST)
+ cd ${WRKSRC}; ${MAKE} test
+.endif
post-install:
- ${CHMOD} 770 ${WRKSRC}/test*
${STRIP_CMD} ${PREFIX}/bin/samefile
${STRIP_CMD} ${PREFIX}/bin/samelink
${STRIP_CMD} ${PREFIX}/bin/samearchive
${STRIP_CMD} ${PREFIX}/bin/samearchive-lite
+ ${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh ${PREFIX}/etc/rc.d/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>