mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
94d74c6da5
- Fix a typo (NIPORTEXAMPLES -> NOPORTEXAMPLES) - Merge two options of cpio(1) so that line does not touch screen boundary Feature safe: yes
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# New ports collection makefile for: Nickle
|
|
# Date created: 16 April 2001
|
|
# Whom: Christopher Elkins <chrise@scardini.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nickle
|
|
PORTVERSION= 2.73
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.nickle.org/release/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A numeric oriented programming language
|
|
|
|
LICENSE= MIT
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
# Nickle now has bindings which are likely to pull in libraries that need
|
|
# libpthread. Link to it now explicitly, or it wouldn't work at runtime.
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
MAN1= nickle.1
|
|
|
|
post-patch:
|
|
# Do not descend into "examples" subdirectory to prevent them being installed
|
|
# under DATADIR (instead, we manually install them later in post-install into
|
|
# EXAMPLESDIR; also remove extra -O2 since we provide our own CFLAGS.
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|examples|| ; s| -O2||' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/examples && ${FIND} . ! \( -name "*Makefile*" -or \
|
|
-name "*.sgml" \) | ${CPIO} -pdm -LR ${SHAREOWN}:${SHAREGRP} \
|
|
${EXAMPLESDIR})
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
|
|
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|