mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
a76f6018ab
It works fine when PORTSDIR points at the physical lcoation. if PORTSDIR point to symlink (as on benot), the workdirs are at a diffrent location. You expect: ${WRKDIRPREFIX}${PORTSDIR}/news/cnews/work ===> c-nocem-3.7 depends on file: /tmp/usr/ports/news/cnews/work/conf/substitutions - not found but the port genarted itws workfiles at: /tmp/a/ports/news/cnews/work/conf/substitutions The location can only be found with ${WRKDIRPREFIX}${.CURDIR}/../../news/cnews/work
38 lines
1010 B
Makefile
38 lines
1010 B
Makefile
# New ports collection makefile for: c-nocem
|
|
# Date created: 19.May 1999
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= c-nocem
|
|
PORTVERSION= 3.7
|
|
CATEGORIES= news security
|
|
MASTER_SITES= http://sites.inka.de/~bigred/sw/ \
|
|
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= NoCeM for C News and INN
|
|
|
|
BUILD_DEPENDS= ${CNEWSWRK}/conf/substitutions:${PORTSDIR}/${CNEWSSRC}:configure
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/${CNEWSSRC} \
|
|
gpg:${PORTSDIR}/security/gnupg
|
|
|
|
WRKSRC= ${WRKDIR}/c-nocem
|
|
CNEWSSRC?= news/cnews
|
|
#CNEWSWRK?= ${WRKDIRPREFIX}${PORTSDIR}/${CNEWSSRC}/work
|
|
# ${.CURDIR}/../.. can be diffrent from ${PORTSDIR}
|
|
CNEWSWRK?= ${WRKDIRPREFIX}${.CURDIR}/../../${CNEWSSRC}/work
|
|
NEWSBIN?= ${PREFIX}/libexec/cnews
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-cnews=${CNEWSWRK}
|
|
PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} > 500000
|
|
USE_PERL5= yes
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|