1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/astro/xephem/Makefile

67 lines
2.1 KiB
Makefile
Raw Normal View History

# 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.6.1
CATEGORIES= astro
MASTER_SITES= # http://www.clearskyinstitute.com/xephem/
MAINTAINER= ports@FreeBSD.org
2003-02-20 17:07:10 +00:00
COMMENT= An interactive astronomical ephemeris program
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
USE_MOTIF= yes
USE_IMAKE= yes
USE_REINPLACE= yes
MAN1= xephem.1
1998-04-29 11:12:12 +00:00
2001-10-25 11:30:51 +00:00
LIBASTROSRC= ${WRKDIR}/${DISTNAME}/libastro
LIBIPSRC= ${WRKDIR}/${DISTNAME}/libip
2004-06-25 11:34:46 +00:00
LIBJPEGDSRC= ${WRKDIR}/${DISTNAME}/libjpegd
LIBLILXMLSRC= ${WRKDIR}/${DISTNAME}/liblilxml
1998-04-29 11:12:12 +00:00
NO_CDROM= Personal use only
# XXX needs to be the same as DISTFILES
XEPHEMSRC= ${PORTNAME}-${PORTVERSION}.tar.gz
.include <bsd.port.pre.mk>
.for file in ${XEPHEMSRC}
.if !exists(${DISTDIR}/${file})
ECHO_MSG= /usr/bin/printf
IGNORE=:\n\
Because of licensing restrictions, you must manually fetch\n\
${file} from http://www.clearskyinstitute.com/xephem/,\n\
place it in ${DISTDIR} and then run make again.\n
.endif
.endfor
post-patch:
@${CHMOD} u+w ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
@${REINPLACE_CMD} -e 's|CC =|CC?=|g ; \
s|CFLAGS=|CFLAGS+=|g ; \
s|-O2 ||g' ${LIBASTROSRC}/Makefile ${LIBIPSRC}/Makefile
1998-04-29 11:12:12 +00:00
pre-build:
2001-10-25 11:30:51 +00:00
@cd ${LIBASTROSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
@cd ${LIBIPSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
2004-06-25 11:34:46 +00:00
@cd ${LIBJPEGDSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE}
@cd ${LIBLILXMLSRC} && ${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
2004-06-25 11:34:46 +00:00
${TAR} -C ${WRKSRC} -cf - auxil catalogs fits fifos help 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.post.mk>