1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

Fix for the case WITHOUT_X11.

Notified by:	Pedro F. Giffuni <giffunip (at) yahoo.com>
This commit is contained in:
Thierry Thomas 2009-12-30 11:26:21 +00:00
parent 2b406a49ce
commit c4ed487b1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246881
2 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,6 @@ USE_GMAKE= yes
USE_PERL5_BUILD=yes
USE_GNOME= pango
USE_GHOSTSCRIPT=yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
WITH_FREETYPE=ON
@ -46,7 +45,6 @@ CMAKE_ARGS+= -DTHREADS_HAVE_PTHREAD_ARG:BOOL=OFF
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
CONFIGURE_ARGS+= --without-x
PLIST_SUB+= X11="@comment "
.else
USE_XORG= x11
@ -121,6 +119,10 @@ pre-everything::
pre-configure:
${REINPLACE_CMD} -e 's|/usr/share/fonts/truetype/freefont|${LOCALBASE}/lib/X11/fonts/freefont-ttf|'\
${WRKSRC}/cmake/modules/freetype.cmake
.if defined(WITHOUT_X11)
${REINPLACE_CMD} -e 's|^find_package(X11)|SET(X11_FOUND "FALSE")|' \
${WRKSRC}/cmake/modules/plplot.cmake
.endif
.if defined(WITH_TCLTK)
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; \
s|/usr/include|${LOCALBASE}/include|' \

View File

@ -144,7 +144,7 @@ libdata/pkgconfig/plplotd.pc
%%DATADIR%%/examples/c/Makefile
%%DATADIR%%/examples/c/README.cairo
%%DATADIR%%/examples/c/ext-cairo-test.c
%%DATADIR%%/examples/c/extXdrawable_demo.c
%%X11%%%%DATADIR%%/examples/c/extXdrawable_demo.c
%%DATADIR%%/examples/c/plcdemos.h
%%DATADIR%%/examples/c/test_plend.c
%%DATADIR%%/examples/c/tutor.c