Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/print/freetype2/Makefile 412348 2016-04-01 14:17:44Z mat $ |
2 |
# $FreeBSD: head/print/freetype2/Makefile 412348 2016-04-01 14:17:44Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= freetype2 |
4 |
PORTNAME= freetype2 |
5 |
PORTVERSION= 2.6.3 |
5 |
PORTVERSION= 2.7 |
6 |
CATEGORIES= print |
6 |
CATEGORIES= print |
7 |
MASTER_SITES= http://savannah.nongnu.org/download/freetype/ \ |
7 |
MASTER_SITES= http://savannah.nongnu.org/download/freetype/ \ |
8 |
SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ \ |
8 |
SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ \ |
Lines 15-20
Link Here
|
15 |
MAINTAINER= gnome@FreeBSD.org |
15 |
MAINTAINER= gnome@FreeBSD.org |
16 |
COMMENT= Free and portable TrueType font rendering engine |
16 |
COMMENT= Free and portable TrueType font rendering engine |
17 |
|
17 |
|
|
|
18 |
LICENSE= FTL GPLv2+ |
19 |
LICENSE_COMB= dual |
20 |
LICENSE_NAME_FTL= The FreeType Project license |
21 |
LICENSE_FILE_FTL= ${WRKSRC}/docs/FTL.TXT |
22 |
LICENSE_FILE_GPLv2+ = ${WRKSRC}/docs/GPLv2.TXT |
23 |
LICENSE_PERMS_FTL= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
24 |
|
18 |
USES= cpe gmake libtool tar:bzip2 |
25 |
USES= cpe gmake libtool tar:bzip2 |
19 |
MAKE_ENV= TOP="" |
26 |
MAKE_ENV= TOP="" |
20 |
USE_LDCONFIG= yes |
27 |
USE_LDCONFIG= yes |
Lines 22-44
Link Here
|
22 |
CONFIGURE_ARGS= --without-harfbuzz |
29 |
CONFIGURE_ARGS= --without-harfbuzz |
23 |
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix |
30 |
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix |
24 |
|
31 |
|
|
|
32 |
SUB_FILES= pkg-message |
33 |
|
34 |
PORTDOCS= reference CHANGES formats.txt LICENSE.TXT raster.txt |
35 |
|
25 |
CPE_PRODUCT= freetype |
36 |
CPE_PRODUCT= freetype |
26 |
CPE_VENDOR= freetype |
37 |
CPE_VENDOR= freetype |
27 |
|
38 |
|
28 |
OPTIONS_DEFINE= LCD_FILTERING PNG |
39 |
OPTIONS_DEFINE= DEBUG DOCS LCD_FILTERING PNG TABLE_VALIDATION |
29 |
OPTIONS_DEFAULT= LCD_FILTERING |
40 |
OPTIONS_GROUP= SUBPIXEL_HINTING |
|
|
41 |
OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40 |
42 |
OPTIONS_DEFAULT= LCD_FILTERING V40 |
43 |
|
30 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
44 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
31 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
45 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
|
|
46 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
47 |
PNG_CONFIGURE_OFF= --without-png |
48 |
TABLE_VALIDATION_DESC= TrueType GX/AAT and OpenType table validation |
32 |
|
49 |
|
33 |
LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING |
50 |
LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING |
34 |
|
51 |
|
35 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
52 |
SUBPIXEL_HINTING_DESC= Sub-pixel hinting support |
36 |
PNG_CONFIGURE_OFF= --without-png |
53 |
V38_DESC= v38 mode (Infinality code) |
|
|
54 |
V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting) |
55 |
|
56 |
.include <bsd.port.options.mk> |
57 |
|
58 |
.if ${PORT_OPTIONS:MV38} && ${PORT_OPTIONS:MV40} |
59 |
CFLAGS+= -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=3 |
60 |
.elif ${PORT_OPTIONS:MV40} |
61 |
CFLAGS+= -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=2 |
62 |
.elif ${PORT_OPTIONS:MV38} |
63 |
CFLAGS+= -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=1 |
64 |
.endif |
37 |
|
65 |
|
38 |
pre-patch: |
66 |
pre-patch: |
39 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
67 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
40 |
${WRKSRC}/builds/unix/install.mk |
68 |
${WRKSRC}/builds/unix/install.mk |
41 |
|
69 |
|
|
|
70 |
post-patch: |
71 |
# warning: 'TT_CONFIG_OPTION_SUBPIXEL_HINTING' macro redefined [-Wmacro-redefined] |
72 |
@${REINPLACE_CMD} -e '/^#define TT_CONFIG_OPTION_SUBPIXEL_HINTING/d' \ |
73 |
${WRKSRC}/include/freetype/config/ftoption.h |
74 |
|
75 |
post-patch-DEBUG-on: |
76 |
@${SED} -i.debug.bak \ |
77 |
-e 's|.*\(#define FT_DEBUG_LEVEL_TRACE\).*|\1|' \ |
78 |
-e 's|.*\(#define FT_DEBUG_MEMORY\).*|\1|' \ |
79 |
${WRKSRC}/include/freetype/config/ftoption.h |
80 |
|
81 |
post-patch-TABLE_VALIDATION-on: |
82 |
@${REINPLACE_CMD} -e '/valid$$/s|#.*\(AUX_MODULES\)|\1|' \ |
83 |
${WRKSRC}/modules.cfg |
84 |
|
42 |
post-configure: |
85 |
post-configure: |
43 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ |
86 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ |
44 |
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) |
87 |
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) |
Lines 46-49
Link Here
|
46 |
post-install: |
89 |
post-install: |
47 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
90 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
48 |
|
91 |
|
|
|
92 |
post-install-DOCS-on: |
93 |
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) |
94 |
|
49 |
.include <bsd.port.mk> |
95 |
.include <bsd.port.mk> |