openbsd-ports/news/nn/Makefile
jasper f11fd9f2ab import nn 6.7.3
nn is a menu based (point and shoot) netnews reader with a complete set
of features to satisfy both the expert and the novice user. Since its
first release in Denmark in 1984 (!), in Europe in 1988, and the global
release in June 1989, it has replaced rn and other well-known news
readers at many sites.

from aaron w. hsu (MAINTAINER) with tweaks by ajacoutot@ and me
2008-11-17 08:42:13 +00:00

64 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/11/17 08:42:13 jasper Exp $
NOT_FOR_ARCHS = arm hppa hp300 sh
COMMENT = No News is Good News (Fast CLI Point & Read Newsreader)
DISTNAME = nn-6.7.3
CATEGORIES = news
HOMEPAGE = http://www.nndev.org
MAINTAINER = Aaron W. Hsu <arcfide@sacrideo.us>
# 4 point NN License a la BSD but with GPL Source Restriction and Freeware
# Requirement
PERMIT_PACKAGE_CDROM = CDs not sold at cost
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = CDs not sold at cost
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c termlib
MASTER_SITES = ftp://ftp.nndev.org/pub/nn-6.7/ \
http://humppa.nl/distfiles/
EXTRACT_SUFX = .tar.Z
NO_REGRESS = Yes
.if "${MACHINE_ARCH}" == "alpha"
MFILE = m-alpha.h
.elif "${MACHINE_ARCH}" == "m68k"
MFILE = m-m680x0.h
.elif "${MACHINE_ARCH}" == "m88k"
MFILE = m-m88000.h
.elif "${MACHINE_ARCH}" == "powerpc"
MFILE = m-powerpc.h
.elif "${MACHINE_ARCH}" == "mips64"
MFILE = m-mips.h
.elif "${MACHINE_ARCH}" == "sparc"
MFILE = m-sparc.h
.elif "${MACHINE_ARCH}" == "sparc64"
MFILE = m-sparc.h
.elif "${MACHINE_ARCH}" == "vax"
MFILE = m-vax.h
.else
MFILE = m-i80386.h
.endif
pre-configure:
sed -e "s/OBSD_PREFIX/${PREFIX:S/\//\\\//g}/" \
-e "s/m-i80386\.h/${MFILE}/" \
${FILESDIR}/config.h > ${WRKSRC}/config.h
cp ${FILESDIR}/s-openbsd.h ${WRKSRC}/conf/s-openbsd.h
pre-install:
sed -e "s/\/usr\/local/${PREFIX:C/\//\\\//g}/" \
${WRKSRC}/inst > ${WRKSRC}/inst.new
mv ${WRKSRC}/inst ${WRKSRC}/inst.old
mv ${WRKSRC}/inst.new ${WRKSRC}/inst
chmod 755 ${WRKSRC}/inst
do-install:
cd ${WRKSRC} && echo `pwd` && ./inst n
.include <bsd.port.mk>