2012-11-04 14:05:04 +01:00
|
|
|
# Created by: Stanislav Sedov <stas@FreeBSD.org>
|
2008-03-11 22:13:53 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= x11
|
2013-11-07 17:00:45 +01:00
|
|
|
PORTVERSION= 1.7.9
|
2010-12-14 08:30:56 +01:00
|
|
|
CATEGORIES= x11 enlightenment
|
2013-10-25 21:58:18 +02:00
|
|
|
MASTER_SITES= http://download.enlightenment.org/releases/ \
|
2012-12-22 21:54:59 +01:00
|
|
|
LOCAL/gblach/e17/
|
2008-03-11 22:13:53 +01:00
|
|
|
PKGNAMEPREFIX= ecore-
|
2012-12-22 21:54:59 +01:00
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-11-04 14:05:04 +01:00
|
|
|
MAINTAINER= gblach@FreeBSD.org
|
2008-03-11 22:13:53 +01:00
|
|
|
COMMENT= Enlightenment core abstraction library (x11 module)
|
|
|
|
|
2010-12-14 08:30:56 +01:00
|
|
|
LICENSE= BSD
|
2012-06-26 19:36:30 +02:00
|
|
|
|
2010-12-14 08:30:56 +01:00
|
|
|
DIST_SUBDIR= e17
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_BZIP2= yes
|
2010-12-14 08:30:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-02 15:54:45 +02:00
|
|
|
USES= gmake pkgconfig
|
2010-12-14 08:30:56 +01:00
|
|
|
USE_EFL= ecore libtool_hack
|
|
|
|
USE_EFL_ECORE= input
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/lib/ecore_x
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
XEXTDIR= ${LOCALBASE}/include/X11/extensions
|
|
|
|
|
2011-07-08 20:50:54 +02:00
|
|
|
.include "../../devel/ecore-main/Makefile.inc"
|
2010-12-14 08:30:56 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ecore-x \
|
|
|
|
--enable-ecore-input
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
OPTIONS_DEFINE= XCURSOR XDAMAGE XDPMS XFIXES XINERAMA XPRINT XRANDR XRENDER XSS
|
|
|
|
OPTIONS_DEFAULT=XCURSOR XDAMAGE XDPMS XFIXES XINERAMA XPRINT XRANDR XRENDER XSS
|
|
|
|
XDAMAGE_DESC= X11 Xdamage extension support
|
|
|
|
XDPMS_DESC= X11 Xdpms extension support
|
|
|
|
XFIXES_DESC= X11 Xfixes extension support
|
|
|
|
XPRINT_DESC= X11 Xprint extension support
|
|
|
|
XRENDER_DESC= X11 Xrender extension support
|
|
|
|
XSS_DESC= X11 Xscrnsaver extension support
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXCURSOR} \
|
|
|
|
|| exists(${LOCALBASE}/include/X11/Xcursor/Xcursor.h)
|
|
|
|
USE_XORG+= xcursor
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MXDAMAGE} || exists(${XEXTDIR}/Xdamage.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xdamage
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXDPMS} || exists(${XEXTDIR}/dpms.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xextproto
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXFIXES} || exists(${XEXTDIR}/Xfixes.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xfixes
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXINERAMA} || exists(${XEXTDIR}/Xinerama.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xineramaproto
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXPRINT} || exists(${XEXTDIR}/Print.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= printproto
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXRANDR} || exists(${XEXTDIR}/Xrandr.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xrandr
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXRENDER} || exists(${XEXTDIR}/Xrender.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xrender
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MXSS} || exists(${XEXTDIR}/scrnsaver.h)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_XORG+= xscrnsaver
|
|
|
|
WITH_X11= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's,\$$\(top_builddir\)/src/lib/ecore/\.libs,${LOCALBASE}/lib,'\
|
2010-12-14 08:30:56 +01:00
|
|
|
-e 's,\$$\(top_builddir\)/src/lib/ecore_input/\.libs,${LOCALBASE}/lib,'\
|
2008-03-11 22:13:53 +01:00
|
|
|
-e 's,\$$\(top_builddir\)/src/lib/ecore/libecore\.la,-lecore,'\
|
2010-12-14 08:30:56 +01:00
|
|
|
-e 's,\$$\(top_builddir\)/src/lib/ecore_input/libecore_input\.la,-lecore_input,'\
|
|
|
|
${BUILD_WRKSRC}/Makefile.in \
|
|
|
|
${BUILD_WRKSRC}/xcb/Makefile.in \
|
|
|
|
${BUILD_WRKSRC}/xlib/Makefile.in
|
2008-03-11 22:13:53 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ecore-x.pc \
|
2013-10-05 23:34:51 +02:00
|
|
|
${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.include <bsd.port.mk>
|