freebsd-ports/devel/yacl/Makefile
Steve Price 544c361b03 - Don't tromple the contents of MAKE_ENV otherwise MOTIF_LIB isn't defined.
- Properly pass MAKE_ENV along.
- Fix build errors on -current.
- Minor cleanup to some echo'd text.
2000-02-27 23:20:31 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection makefile for: YACL
# Version required: 1.7-beta
# Date created: 6 March 1998
# Whom: Jeroen Hogeveen <albast@xs4all.nl>
#
# $FreeBSD$
#
DISTNAME= yacl-0170-beta
PKGNAME= yacl-1.7b
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cs.sc.edu/pub/yacl/
MAINTAINER= albast@xs4all.nl
USE_ZIP= yes
WRKSRC= ${WRKDIR}
MAKE_ENV+= YACLPATH=${WRKDIR}
MAKEFILE= gnuc.mak
ALL_TARGET= yacl
REQUIRES_MOTIF= true
post-build:
@(cd ${WRKSRC}/apps/bmpview; ${MAKE} ${MAKE_ENV} -f gnuc.mak)
@(cd ${WRKSRC}/apps/dlged; ${MAKE} ${MAKE_ENV} -f gnuc.mak)
do-install:
# don't split up base directory; keep compilation semantics.
@${MKDIR} ${PREFIX}/lib/yacl ${PREFIX}/share/yacl \
${PREFIX}/share/yacl/apps ${PREFIX}/share/yacl/base \
${PREFIX}/include/yacl ${PREFIX}/include/yacl/io \
${PREFIX}/include/yacl/ui
@${CP} -R ${WRKSRC}/lib/* ${PREFIX}/lib/yacl
@${CP} -R ${WRKSRC}/basedemo ${WRKSRC}/contrib ${WRKSRC}/doc \
${WRKSRC}/control ${WRKSRC}/readme.txt ${WRKSRC}/uidemo \
${PREFIX}/share/yacl
@${CP} ${WRKSRC}/base/*.h ${WRKSRC}/base/*.cxx ${PREFIX}/share/yacl/base
@${CP} ${WRKSRC}/io/*.h ${PREFIX}/include/yacl/io
@${CP} ${WRKSRC}/ui/*.h ${PREFIX}/include/yacl/ui
@${CP} ${WRKSRC}/apps/bmpview/bmpview ${WRKSRC}/apps/dlged/dlged \
${PREFIX}/share/yacl/apps
@( cd ${PREFIX}/share/yacl; ${LN} -s ${PREFIX}/lib/yacl lib; \
${LN} -s ${PREFIX}/include/yacl/io; ${LN} -s ${PREFIX}/include/yacl/ui )
@${ECHO} "Done. Don't forget to set your YACLPATH environment "
@${ECHO} "variable to ${PREFIX}/share/yacl!"
post-install:
@strip ${PREFIX}/share/yacl/apps/bmpview
@strip ${PREFIX}/share/yacl/apps/dlged
.include <bsd.port.mk>