aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ming/Makefile
blob: f8a64bc959ac3d9a95f045db0ce0d698f59d048c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# New ports collection makefile for:    Ming
# Date created:     14 October 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   ming
PORTVERSION=    0.3.0
PORTREVISION=   2
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    LGPL'ed Flash 4/5 movie output library with many languages support

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        ungif.5:${PORTSDIR}/graphics/libungif

CONFLICTS=  ja-ming-[0-9]*

USE_GNOME=  gnometarget
USE_BISON=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --includedir=${PREFIX}/include/ming \
        ac_cv_path_PYTHON=no
USE_LDCONFIG=   yes

CPPFLAGS=   -I. -I.. -I${LOCALBASE}/include
LDFLAGS=    -L. -L.. -L${LOCALBASE}/lib
CFLAGS+=    ${CPPFLAGS}

UTILS=      dbl2png listaction listaction_d listfdb listjpeg listmp3 \
        listswf listswf_d makefdb makeswf raw2adpcm swftoperl \
        swftophp swftopython gif2dbl gif2mask png2dbl png2swf
DOCS=       CREDITS ChangeLog HISTORY NEWS README TODO
DOCS_UTIL=  README TIPS TODO swftoperl.html

post-patch:
    @${REINPLACE_CMD} -e 's|@SHCFLAGS@|-fPIC -DPIC|g ; \
         s|@SHLIBLDFLAGS@|-shared -Wl,-soname,$$(SHAREDLIB)|g ; \
         s|@SHLIBEXT@|.so.4|g' ${WRKSRC}/Makefile.config.in
    @${REINPLACE_CMD} -e '/SHORT_SHLIBEXT/d' ${WRKSRC}/src/Makefile

do-install:
.for file in ${UTILS}
    ${INSTALL_PROGRAM} ${WRKSRC}/util/${file} ${PREFIX}/bin
.endfor
    ${INSTALL_SCRIPT} ${WRKSRC}/util/ming-config ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/util/cws2fws ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/include/ming
    ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/ming
    ${INSTALL_DATA} ${WRKSRC}/src/*.h ${PREFIX}/include/ming
    @${MKDIR} ${PREFIX}/include/ming/util
    ${INSTALL_DATA} ${WRKSRC}/util/*.h ${PREFIX}/include/ming/util
    ${INSTALL_DATA} ${WRKSRC}/util/png2dbl.c ${PREFIX}/include/ming/util
    @${MKDIR} ${PREFIX}/include/ming/blocks
    ${INSTALL_DATA} ${WRKSRC}/src/blocks/*.h ${PREFIX}/include/ming/blocks
    ${INSTALL_DATA} ${WRKSRC}/libming.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/libming.so.4 ${PREFIX}/lib
    ${LN} -sf libming.so.4 ${PREFIX}/lib/libming.so
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
    @${MKDIR} ${DOCSDIR}/util
.for file in ${DOCS_UTIL}
    @${INSTALL_DATA} ${WRKSRC}/util/${file} ${DOCSDIR}/util
.endfor
.endif

.include <bsd.port.mk>