openbsd-ports/astro/sattrack/Makefile
ajacoutot f95a4dc560 - use a V version variable
- tweak WRKDIST and WRKSRC and regen patches accordingly
- simplify substitution in pre-configure
no package change
2007-12-18 09:08:24 +00:00

37 lines
835 B
Makefile

# $OpenBSD: Makefile,v 1.24 2007/12/18 09:08:24 ajacoutot Exp $
V= 3.1.6
COMMENT= real-time satellite tracking and orbit propagation program
DISTNAME= sattrack-${V}
PKGNAME= ${DISTNAME}p1
CATEGORIES= astro
# Commercial License
PERMIT_PACKAGE_CDROM= May not be bundled, according to copyright
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= May not be bundled, according to copyright
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xt c m
FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX}
USE_X11= Yes
WRKDIST= ${WRKDIR}/SatTrack-${V}
WRKSRC= ${WRKDIST}/src
pre-configure:
@perl -pi -e 's,__PREFIX__,${PREFIX},g' \
${WRKDIST}/run/getsts \
${WRKDIST}/run/gettle
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/SatTrack/{data,pred,tle} \
${PREFIX}/share/doc/SatTrack
NO_REGRESS= Yes
.include <bsd.port.mk>