diff options
author | dhn <dhn@FreeBSD.org> | 2009-05-26 03:56:45 +0800 |
---|---|---|
committer | dhn <dhn@FreeBSD.org> | 2009-05-26 03:56:45 +0800 |
commit | 37d092b02e88e8a3926a711785178ba1a75e5752 (patch) | |
tree | c12271dc33348115c5da3f0166836e75175ab2ac /sysutils/samesame/Makefile | |
parent | f8d59ef6857191f311ff449676ddde755d2e6b50 (diff) | |
download | freebsd-ports-gnome-37d092b02e88e8a3926a711785178ba1a75e5752.tar.gz freebsd-ports-gnome-37d092b02e88e8a3926a711785178ba1a75e5752.tar.zst freebsd-ports-gnome-37d092b02e88e8a3926a711785178ba1a75e5752.zip |
- Update to 1.1
PR: ports/134769
Submitted by: Alex de Kruijff <samesame@akruijff.dds.nl> (maintainer)
Diffstat (limited to 'sysutils/samesame/Makefile')
-rw-r--r-- | sysutils/samesame/Makefile | 40 |
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> |