openbsd-ports/graphics/imlib2/Makefile
2022-03-31 14:20:40 +00:00

40 lines
935 B
Makefile

COMMENT= image manipulation library
DISTNAME= imlib2-1.4.10
REVISION= 0
SHARED_LIBS= Imlib2 6.0 # .5.9
CATEGORIES= graphics
HOMEPAGE= http://www.enlightenment.org/p.php?p=about/libs/imlib2&l=en
# BSD
PERMIT_PACKAGE= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=enlightenment/}
WANTLIB= X11 Xext c freetype m xcb z \
jpeg>=62 gif>=5 png>=2 tiff>=35 bz2 id3tag>=3 \
lzma pthread zstd
LIB_DEPENDS+= graphics/jpeg \
graphics/giflib \
graphics/png \
graphics/tiff \
archivers/bzip2 \
audio/libid3tag
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+= --disable-mmx
.endif
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/imlib2.pc.in ${WRKSRC}/imlib2-config.in
post-install:
rm ${PREFIX}/lib/imlib2/filters/*.la ${PREFIX}/lib/imlib2/loaders/*.la
.include <bsd.port.mk>