openbsd-ports/x11/nx/nxcomp/Makefile
2009-03-30 17:04:42 +00:00

36 lines
963 B
Makefile

# $OpenBSD: Makefile,v 1.3 2009/03/30 17:04:42 jasper Exp $
COMMENT= library to compress the standard X protocol
DASHVERSION= 4
DISTNAME= nxcomp-${MAJOR_VERSION}-${DASHVERSION}
PKGNAME= nxcomp-${MAJOR_VERSION}.${DASHVERSION}
SHARED_LIBS= Xcomp 0.0
WANTLIB= z
LIB_DEPENDS= jpeg::graphics/jpeg \
png::graphics/png
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= gnu autoconf
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
LIBXcomp_VERSION=${LIBXcomp_VERSION} \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}"
WRKDIST= ${WRKDIR}/nxcomp
USE_X11= Yes
do-install:
${INSTALL_DATA} ${WRKBUILD}/libXcomp.so.${LIBXcomp_VERSION} \
${PREFIX}/lib
${INSTALL_DATA} ${WRKBUILD}/libXcomp.a ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/include/nx
${INSTALL_DATA} ${WRKBUILD}/NX*.h ${PREFIX}/include/nx
${INSTALL_DATA} ${WRKBUILD}/MD5.h ${PREFIX}/include/nx
.include <bsd.port.mk>