summaryrefslogtreecommitdiff
path: root/graphics/libjxr/Makefile
blob: 63191c83b6812e0af696a274f3bf53b8e3708450 (plain)
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
PORTNAME=	jxrlib
PORTVERSION=	1.1
CATEGORIES=	graphics devel
MASTER_SITES=	DEBIAN
DISTFILES=	jxrlib_${PORTVERSION}.orig.tar.gz	\
		jxrlib_${PORTVERSION}-6.debian.tar.xz

MAINTAINER=	mi@aldan.algebra.com
COMMENT=	Library for JPEG XR, a.k.a. Windows MediaTM Photo

LICENSE=	BSD2CLAUSE

USES=		dos2unix uidfix
USE_LDCONFIG=	yes
MAKEFILE=	BSDmakefile	# created by do-configure
MAKE_ENV=	WRKDIR="${WRKDIR}"

do-configure:
	${RM} -f ${WRKSRC}/BSDmakefile
.for d in libjpegxr jxrgluelib JxrEncApp JxrDecApp
	${MKDIR} ${WRKSRC}/$d
	${LN} -sf ${FILESDIR}/BSDmakefile.$d ${WRKSRC}/$d/BSDmakefile
	${ECHO} "SUBDIR+=$d" >> ${WRKSRC}/BSDmakefile
.endfor
	${ECHO} '.include <bsd.subdir.mk>' >> ${WRKSRC}/BSDmakefile

post-build:
	${MKDIR} ${STAGEDIR}${PREFIX}/include/jxrlib

do-test:
	${SETENV} WRKSRC="${WRKSRC}" ${SH} -x ${FILESDIR}/test.sh

.include <bsd.port.mk>