aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/zphoto/Makefile
blob: cdb8b2f9e7f956f12c4421ef6f140ba58d4c9f18 (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
# Created by: UMENO Takashi <umeno@rr.iij4u.or.jp>
# $FreeBSD$

PORTNAME=   zphoto
PORTVERSION=    1.2
PORTREVISION=   14
CATEGORIES= graphics www
MASTER_SITES=   http://namazu.org/~satoru/zphoto/
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Zooming photo album generator

OPTIONS_DEFINE= ZIP
OPTIONS_DEFAULT=    ZIP
ZIP_DESC=   Enable zip support

LIB_DEPENDS=    libming.so:${PORTSDIR}/graphics/ming \
        libpopt.so:${PORTSDIR}/devel/popt \
        libImlib2.so:${PORTSDIR}/graphics/imlib2

ZIP_RUN_DEPENDS=    zip:${PORTSDIR}/archivers/zip
ZIP_CONFIGURE_OFF=  --disable-zip

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-avifile
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
USES=       perl5 gmake
USE_PERL5=  build

post-patch:
    @${REINPLACE_CMD} -e 's|<ming.h>|<ming/ming.h>|g' ${WRKSRC}/*.c ${WRKSRC}/configure

.include <bsd.port.mk>