d5819cf547
the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command. Use command macros where appropriate.
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# New ports collection makefile for: xephem
|
|
# Date created: Thu Aug 1 09:10:22 CDT 1996
|
|
# Whom: erich@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xephem
|
|
PORTVERSION= 3.5.2
|
|
CATEGORIES= astro
|
|
MASTER_SITES= http://www.clearskyinstitute.com/xephem/ \
|
|
ftp://iraf.noao.edu/contrib/xephem/ \
|
|
ftp://wolf.ifj.edu.pl/mirror/xephem/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
|
|
|
|
USE_MOTIF= yes
|
|
USE_IMAKE= yes
|
|
MAN1= xephem.1
|
|
|
|
LIBASTROSRC= ${WRKDIR}/${DISTNAME}/libastro
|
|
LIBIPSRC= ${WRKDIR}/${DISTNAME}/libip
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's|CC =|CC?=|g ; \
|
|
s|CFLAGS=|CFLAGS+=|g ; \
|
|
s|-O2 ||g' ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
|
|
|
|
pre-build:
|
|
@cd ${LIBASTROSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
|
@cd ${LIBIPSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
|
|
@${ECHO_CMD} 'XEphem.ShareDir: ${PREFIX}/lib/X11/xephem' > ${WRKSRC}/XEphem.ad
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/XEphem.ad ${PREFIX}/lib/X11/app-defaults/XEphem
|
|
@${MKDIR} ${PREFIX}/lib/X11/xephem
|
|
${TAR} -C ${WRKSRC} -cf - auxil catalogs fits fifos tools \
|
|
| ${TAR} -C ${PREFIX}/lib/X11/xephem --unlink -xf -
|
|
@${FIND} ${PREFIX}/lib/X11/xephem | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREMODE}
|
|
@${FIND} ${PREFIX}/lib/X11/xephem -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
.include <bsd.port.mk>
|