aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/sng/Makefile
blob: 8aa2894d38e9c7e814c28e0cc171e11f6fd0d500 (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
30
31
32
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sng
PORTVERSION=    1.0.6
CATEGORIES= graphics
MASTER_SITES=   SF/${PORTNAME}/

MAINTAINER= robak@FreeBSD.org
COMMENT=    Compiler/decompiler for Scriptable Network Graphics

BROKEN=     Does not support modern png

BUILD_DEPENDS=  ${LOCALBASE}/lib/X11/rgb.txt:${PORTSDIR}/x11/rgb
RUN_DEPENDS=    ${LOCALBASE}/lib/X11/rgb.txt:${PORTSDIR}/x11/rgb
LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png

GNU_CONFIGURE=  yes
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-png-inc=${LOCALBASE}/include \
        --with-rgbtxt=${LOCALBASE}/lib/X11/rgb.txt

PLIST_FILES=    bin/sng bin/sng_regress man/man1/sng.1.gz

no-pre-patch:
    @${REINPLACE_CMD} -e 's|-static||g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '33,34s|^static ||' ${WRKSRC}/sngd.c

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/sng_regress ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>