1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/astro/xephem/Makefile
Jimmy Olgeni 37e782dfbc Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories A-C.

CR:		D196
Approved by:	portmgr (bapt)
2014-06-09 11:21:52 +00:00

68 lines
2.0 KiB
Makefile

# Created by: erich@FreeBSD.org
# $FreeBSD$
PORTNAME= xephem
PORTVERSION= 3.7.6
CATEGORIES= astro
MASTER_SITES= # http://www.clearskyinstitute.com/xephem/
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= Interactive astronomical ephemeris program
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libjpeg.so:${PORTSDIR}/graphics/jpeg
USES= gmake motif
LDFLAGS+= -lfontconfig
USE_XORG= xp xt xext xmu x11 xft
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/GUI/xephem
RESTRICTED= 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})
IGNORE= because of licensing restrictions, you must manually fetch ${file}\
from http://www.clearskyinstitute.com/xephem/,\
place it in ${DISTDIR} and then run make again
.endif
.endfor
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|/usr/X11R6|${LOCALBASE}|g' \
${WRKSRC}/Makefile
@${FIND} ${WRKSRC}/../.. -name Makefile -type f | \
${XARGS} ${REINPLACE_CMD} -e 's|CC = gcc|CC?= ${CC}|g ; \
s|CFLAGS =|CFLAGS+=|g ; \
s|LDFLAGS =|LDFLAGS+=|g ; \
s|-O2 ||g'
pre-build:
@${ECHO_CMD} 'XEphem.ShareDir: ${STAGEDIR}${PREFIX}/lib/X11/xephem' \
> ${WRKSRC}/XEphem.ad
pre-install:
@${FIND} ${WRKSRC}/../.. -name Makefile.bak -type f -delete
@${CP} ${WRKSRC}/xephem.man ${STAGEDIR}${PREFIX}/man/man1/xephem.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xephem ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/XEphem.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XEphem
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xephem
${TAR} -C ${WRKSRC} -cf - auxil catalogs fifos fits gallery help lo \
| ${TAR} -C ${STAGEDIR}${PREFIX}/lib/X11/xephem --unlink -xf -
@${FIND} ${STAGEDIR}${PREFIX}/lib/X11/xephem \
| ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGROUP}
@${FIND} ${STAGEDIR}${PREFIX}/lib/X11/xephem -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include <bsd.port.post.mk>