2006-02-09 19:17:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2006/02/09 18:20:58 rillig Exp $
|
2000-06-05 14:36:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ${PRGNAME}unix
|
|
|
|
PKGNAME= ${PRGNAME}-2.3
|
|
|
|
CATEGORIES= archivers
|
|
|
|
MASTER_SITES= ftp://sunsite.unc.edu/pub/packages/TeX/tools/xbin/
|
|
|
|
DISTFILES= ${DISTNAME}.c ${PRGNAME}.man
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2003-07-21 18:24:36 +02:00
|
|
|
COMMENT= Convert mailable BinHex format into binary
|
2000-06-05 14:36:07 +02:00
|
|
|
|
2006-02-09 19:17:52 +01:00
|
|
|
RESTRICTED= May not be sold without permission.
|
2001-06-04 19:08:20 +02:00
|
|
|
NO_SRC_ON_CDROM=${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM=${RESTRICTED}
|
|
|
|
|
2004-07-28 04:47:34 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2001-07-16 12:29:50 +02:00
|
|
|
|
2000-06-05 14:36:07 +02:00
|
|
|
PRGNAME= xbin
|
2002-08-25 23:48:57 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
2000-06-05 14:36:07 +02:00
|
|
|
|
2004-06-18 19:41:10 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2005-01-16 17:57:12 +01:00
|
|
|
|
2005-10-03 13:23:42 +02:00
|
|
|
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
|
2005-01-16 17:57:12 +01:00
|
|
|
CFLAGS+= -DBSD
|
|
|
|
LDFLAGS+= -lcompat
|
2004-06-18 19:41:10 +02:00
|
|
|
.endif
|
2005-01-16 17:57:12 +01:00
|
|
|
CFLAGS.Interix+= -DBSD
|
2005-06-06 16:03:53 +02:00
|
|
|
CFLAGS.Darwin+= -DBSD
|
2004-06-18 19:41:10 +02:00
|
|
|
|
2004-07-28 04:47:34 +02:00
|
|
|
INSTALLATION_DIRS= bin man/cat1
|
|
|
|
|
2000-10-10 13:49:59 +02:00
|
|
|
post-extract:
|
2000-10-10 13:50:42 +02:00
|
|
|
.for dfile in ${DISTFILES}
|
2006-02-09 19:17:52 +01:00
|
|
|
${CP} ${DISTDIR:Q}/${dfile:Q} ${WRKSRC:Q}
|
2000-06-05 14:36:07 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-build:
|
2006-02-09 19:17:52 +01:00
|
|
|
cd ${WRKSRC:Q} && \
|
|
|
|
${CC} ${CFLAGS} -o ${PRGNAME:Q} ${DISTNAME:Q}.c ${LDFLAGS}
|
2000-06-05 14:36:07 +02:00
|
|
|
|
|
|
|
do-install:
|
2006-02-09 19:17:52 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC:Q}/${PRGNAME:Q} ${PREFIX:Q}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC:Q}/${PRGNAME:Q}.man ${PREFIX:Q}/man/cat1/${PRGNAME:Q}.0
|
2000-06-05 14:36:07 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|