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.6.5 |
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 |
PORTDOCS= reference CHANGES formats.txt LICENSE.TXT raster.txt |
33 |
|
25 |
CPE_PRODUCT= freetype |
34 |
CPE_PRODUCT= freetype |
26 |
CPE_VENDOR= freetype |
35 |
CPE_VENDOR= freetype |
27 |
|
36 |
|
28 |
OPTIONS_DEFINE= LCD_FILTERING PNG |
37 |
OPTIONS_DEFINE= DOCS LCD_FILTERING PNG TABLE_VALIDATION |
|
|
38 |
OPTIONS_GROUP= SUBPIXEL_HINTING |
39 |
OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40 |
29 |
OPTIONS_DEFAULT= LCD_FILTERING |
40 |
OPTIONS_DEFAULT= LCD_FILTERING |
|
|
41 |
|
30 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
42 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
31 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
43 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
32 |
|
|
|
33 |
LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING |
34 |
|
35 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
44 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
36 |
PNG_CONFIGURE_OFF= --without-png |
45 |
PNG_CONFIGURE_OFF= --without-png |
|
|
46 |
TABLE_VALIDATION_DESC= Enable table validation modules |
47 |
|
48 |
SUBPIXEL_HINTING_DESC= Sub-pixel hinting support |
49 |
V38_DESC= v38 mode (Infinality code) |
50 |
V38_VARS= SUBPIXEL_HINTING_MODE+=1 |
51 |
V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting) |
52 |
V40_VARS= SUBPIXEL_HINTING_MODE+=2 |
53 |
|
54 |
.include <bsd.port.pre.mk> |
55 |
|
56 |
SELECTED_MODE= r=0; for m in ${SUBPIXEL_HINTING_MODE};\ |
57 |
do r=$$(($$r | $$m)); done; ${ECHO_CMD} $$r |
37 |
|
58 |
|
38 |
pre-patch: |
59 |
pre-patch: |
39 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
60 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
40 |
${WRKSRC}/builds/unix/install.mk |
61 |
${WRKSRC}/builds/unix/install.mk |
41 |
|
62 |
|
|
|
63 |
.if defined(SUBPIXEL_HINTING_MODE) |
64 |
post-patch: |
65 |
@${REINPLACE_CMD} -e \ |
66 |
's|.*\(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\).*\|.*|\1\ |
67 |
${SELECTED_MODE:sh}|' \ |
68 |
${WRKSRC}/include/freetype/config/ftoption.h |
69 |
.endif |
70 |
|
71 |
post-patch-LCD_FILTERING-on: |
72 |
@${SED} -i '.f.bak' -e \ |
73 |
's|.*\(#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING\).*|\1|' \ |
74 |
${WRKSRC}/include/freetype/config/ftoption.h |
75 |
|
76 |
post-patch-TABLE_VALIDATION-on: |
77 |
@${REINPLACE_CMD} -e '/valid$$/s|#.*\(AUX_MODULES\)|\1|' \ |
78 |
${WRKSRC}/modules.cfg |
79 |
|
42 |
post-configure: |
80 |
post-configure: |
43 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ |
81 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \ |
44 |
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) |
82 |
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup) |
Lines 46-49
Link Here
|
46 |
post-install: |
84 |
post-install: |
47 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
85 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
48 |
|
86 |
|
49 |
.include <bsd.port.mk> |
87 |
post-install-DOCS-on: |
|
|
88 |
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) |
89 |
|
90 |
.include <bsd.port.post.mk> |