1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/sysutils/samesame/Makefile
Dennis Herrmann 95b65fc48a - Update to 1.3
PR:		ports/136307
Submitted by:	Alex de Kruijff <samesame@akruijff.dds.nl> (maintainer)
2009-07-07 22:08:29 +00:00

70 lines
1.6 KiB
Makefile

# New ports collection makefile for: samesame
# Date created: 14 April 2009
# Whom: Alex de Kruijff
#
# $FreeBSD$
PORTNAME= samesame
PORTVERSION= 1.3
CATEGORIES= sysutils
MASTER_SITES= http://samesame.kruijff.org/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dhn
MAINTAINER= samesame@akruijff.dds.nl
COMMENT= Find identical files and optionally link them together
CONFLICTS= samefile-[0-9]*
MAN1= samearchive.1 samearchive-lite.1 samefile.1 samelink.1
MANCOMPRESSED= no
PLIST_FILES= bin/samearchive bin/samefile \
bin/samearchive-lite bin/samelink \
etc/rc.d/samesame.sh
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --mandir="${MANPREFIX}/man" --prefix="${PREFIX}" \
--includedir="${LOCALBASE}/include" --libdir="${LOCALBASE}/lib"
USE_BZIP2= yes
OPTIONS= DEBUG "Enables debugging support" Off \
DISK_STORAGE "Allows temporarily storage paths on disk" On \
LOGIC "Determine results by using logic when posible" On \
TEST "Run quality assurance test" Off
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
.if defined(WITH_DISK_STORAGE)
CONFIGURE_ARGS+= --enable-disk-storage
.endif
.if defined(WITHOUT_LOGIC)
CONFIGURE_ARGS+= --disable-logic
.endif
test: build
@cd ${WRKSRC}; ${MAKE} check
pre-install:
.if defined(WITH_TEST)
@cd ${WRKSRC}; ${MAKE} check
.endif
post-install:
.if defined(WITHOUT_DEBUG)
${STRIP_CMD} ${PREFIX}/bin/samefile
${STRIP_CMD} ${PREFIX}/bin/samelink
${STRIP_CMD} ${PREFIX}/bin/samearchive
${STRIP_CMD} ${PREFIX}/bin/samearchive-lite
.endif
${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh ${PREFIX}/etc/rc.d/
@${CAT} pkg-message
.include <bsd.port.post.mk>