openbsd-ports/news/nn/Makefile
2009-09-13 17:37:36 +00:00

64 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2009/09/13 17:37:36 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://www.phil.uu.nl/~lievisse/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>