2009-04-30 17:31:00 +02:00
|
|
|
# New ports collection makefile for: samesame
|
|
|
|
# Date created: 14 April 2009
|
|
|
|
# Whom: Alex de Kruijff
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= samesame
|
2009-05-27 22:43:39 +02:00
|
|
|
PORTVERSION= 1.2
|
2009-06-30 22:43:11 +02:00
|
|
|
PORTREVISION= 1
|
2009-04-30 17:31:00 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-05-27 22:43:39 +02:00
|
|
|
MASTER_SITES= http://samesame.kruijff.org/ \
|
2009-04-30 17:31:00 +02:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= dhn
|
|
|
|
|
2009-05-19 16:25:13 +02:00
|
|
|
MAINTAINER= samesame@akruijff.dds.nl
|
|
|
|
COMMENT= Find identical files and optionally link them together
|
2009-04-30 17:31:00 +02:00
|
|
|
|
|
|
|
CONFLICTS= samefile-[0-9]*
|
|
|
|
|
|
|
|
MAN1= samearchive.1 samearchive-lite.1 samefile.1 samelink.1
|
|
|
|
MANCOMPRESSED= yes
|
2009-05-25 21:56:45 +02:00
|
|
|
PLIST_FILES= bin/samearchive bin/samefile \
|
|
|
|
bin/samearchive-lite bin/samelink \
|
|
|
|
etc/rc.d/samesame.sh
|
2009-04-30 17:31:00 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
OPTIONS= DEBUG "Enables debugging support" Off \
|
|
|
|
DISK_STORAGE "Allow temporarily storage paths on disk" On \
|
2009-05-25 21:56:45 +02:00
|
|
|
LOGIC "Determine results by using logic when posible" On \
|
2009-05-27 22:43:39 +02:00
|
|
|
TEST "Run quality assurance test" Off
|
2009-05-25 21:56:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-04-30 17:31:00 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CFLAGS+= -DDEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DISK_STORAGE)
|
|
|
|
CFLAGS+= -DWITH_DISK_STORAGE
|
|
|
|
.endif
|
|
|
|
|
2009-05-25 21:56:45 +02:00
|
|
|
.if defined(WITHOUT_LOGIC)
|
|
|
|
CFLAGS+= -DWITHOUT_LOGIC
|
2009-04-30 17:31:00 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -DWITH_MMAP
|
|
|
|
CFLAGS+= -D'TEMP_STORAGE_DIR=\"/tmp\"'
|
|
|
|
CFLAGS+= -DPATH_INIT=256
|
|
|
|
CFLAGS+= -DSTATIC_CACHE_CAPACITY=8192
|
|
|
|
|
2009-05-27 22:43:39 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|@||g' ${WRKSRC}/Makefile
|
|
|
|
|
2009-05-25 21:56:45 +02:00
|
|
|
post-build:
|
|
|
|
.if defined(WITH_TEST)
|
|
|
|
cd ${WRKSRC}; ${MAKE} test
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
.if defined(WITH_TEST)
|
|
|
|
cd ${WRKSRC}; ${MAKE} test
|
|
|
|
.endif
|
2009-05-01 20:25:31 +02:00
|
|
|
|
2009-04-30 17:31:00 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/samefile
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/samelink
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/samearchive
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/samearchive-lite
|
2009-05-25 21:56:45 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh ${PREFIX}/etc/rc.d/
|
2009-04-30 17:31:00 +02:00
|
|
|
|
2009-05-25 21:56:45 +02:00
|
|
|
.include <bsd.port.post.mk>
|