aboutsummaryrefslogtreecommitdiffstats
path: root/astro/saoimage/Makefile
blob: f9e8b910c1ae90920af5a425c927ad4f4ab3427d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Pedro Giffuni <giffunip@asme.org>
# $FreeBSD$

PORTNAME=   saoimage
PORTVERSION=    1.35.1
PORTREVISION=   2
CATEGORIES= astro
MASTER_SITES=   http://tdc-www.harvard.edu/software/saoimage/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Smithsonian Astrophysical Observatory image utility for X

MAKEFILE=   makefile
MAKE_ENV=   OFLAGS="${CFLAGS}"
ALL_TARGET= ${OPSYS}
USE_XORG=   x11

PLIST_FILES=    bin/saoimage etc/imtoolrc.sample man/man1/saoimage.1.gz

post-patch:
    # MFLAGS is reserved by make
    @${REINPLACE_CMD} -e 's|MFLAGS|MYMFLAGS|' ${WRKSRC}/makefile.FreeBSD

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/saoimage ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/imtoolrc ${STAGEDIR}${PREFIX}/etc/imtoolrc.sample
    ${INSTALL_MAN} ${WRKSRC}/doc/saoimage.man ${STAGEDIR}${MAN1PREFIX}/man/man1/saoimage.1

.include <bsd.port.mk>