2003-02-18 07:59:10 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2003/02/18 12:59:10 naddy Exp $
|
2000-10-01 17:15:48 -04:00
|
|
|
# $FreeBSD: Makefile,v 1.7 1998/12/24 13:15:23 dirk Exp $
|
|
|
|
|
2001-03-29 10:01:53 -05:00
|
|
|
COMMENT= "unique standard tape archiver with many enhancements"
|
|
|
|
|
2003-02-18 07:59:10 -05:00
|
|
|
DISTNAME= star-1.4.3
|
2000-10-01 17:15:48 -04:00
|
|
|
CATEGORIES= archivers sysutils
|
2003-02-12 10:48:27 -05:00
|
|
|
HOMEPAGE= http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html
|
2000-10-01 17:15:48 -04:00
|
|
|
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2001-05-06 17:52:45 -04:00
|
|
|
# GPL
|
2000-10-01 17:15:48 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-02-12 10:40:39 -05:00
|
|
|
MASTER_SITES= ftp://ftp.berlios.de/pub/star/
|
2002-05-30 19:27:48 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2001-05-06 17:52:45 -04:00
|
|
|
|
|
|
|
FLAVORS= static
|
|
|
|
FLAVOR?=
|
|
|
|
|
2002-05-30 19:27:48 -04:00
|
|
|
RUN_DEPENDS= :bzip2-*:archivers/bzip2
|
|
|
|
|
2000-10-01 17:15:48 -04:00
|
|
|
USE_GMAKE= Yes
|
2002-05-30 19:27:48 -04:00
|
|
|
MAKE_ENV= MAKEPROG="${MAKEPROG}" \
|
|
|
|
CCOM="${CC}" COPTX="${CFLAGS}" \
|
|
|
|
SYSCONFDIR="${SYSCONFDIR}"
|
2001-05-06 17:52:45 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mstatic}
|
2002-05-30 19:27:48 -04:00
|
|
|
MAKE_ENV+= LDOPTX=-static
|
2001-05-06 17:52:45 -04:00
|
|
|
.endif
|
2000-10-01 17:15:48 -04:00
|
|
|
|
|
|
|
.if ${MACHINE} != "i386" || ${CC} != "cc"
|
|
|
|
do-configure:
|
2001-05-06 17:52:45 -04:00
|
|
|
@ln -sf ${WRKSRC}/RULES/i386-openbsd-cc.rul \
|
|
|
|
${WRKSRC}/RULES/${MACHINE}-openbsd-${CC}.rul
|
2000-10-01 17:15:48 -04:00
|
|
|
.endif
|
|
|
|
|
2002-06-26 11:22:54 -04:00
|
|
|
OBJ= OBJ/${MACHINE}-openbsd-${CC}
|
|
|
|
|
2000-10-01 17:15:48 -04:00
|
|
|
do-install:
|
2002-06-26 11:22:54 -04:00
|
|
|
.for prog in star tartest
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/${prog}/${OBJ}/${prog} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${prog}/${prog}.1 ${PREFIX}/man/man1
|
|
|
|
.endfor
|
2000-10-01 17:15:48 -04:00
|
|
|
cd ${PREFIX}/bin; ln -sf star ustar
|
|
|
|
cd ${PREFIX}/man/man1; ln -sf star.1 ustar.1
|
2002-11-29 15:59:47 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/mt/${OBJ}/smt ${PREFIX}/bin
|
2002-06-26 11:22:54 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/rmt/${OBJ}/rmt ${PREFIX}/libexec/srmt
|
2001-05-06 17:52:45 -04:00
|
|
|
perl -pi -e 's,%%SYSCONFDIR%%,${SYSCONFDIR},g' ${WRKSRC}/rmt/rmt.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/rmt/rmt.1 ${PREFIX}/man/man8/srmt.8
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/star
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rmt/rmt.dfl \
|
|
|
|
${PREFIX}/share/examples/star/srmt.conf.sample
|
2000-10-01 17:15:48 -04:00
|
|
|
|
2001-10-04 18:26:48 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2000-10-01 17:15:48 -04:00
|
|
|
.include <bsd.port.mk>
|