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_GPLv2+ = ${WRKSRC}/docs/GPLv2.TXT |
22 |
LICENSE_FILE_FTL= ${WRKSRC}/docs/FTL.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-40
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 |
|
|
38 |
OPTIONS_GROUP= SUBPIXEL_HINTING |
39 |
OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40 |
29 |
OPTIONS_DEFAULT= LCD_FILTERING |
40 |
OPTIONS_DEFAULT= LCD_FILTERING |
30 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
|
|
31 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
32 |
|
41 |
|
|
|
42 |
LCD_FILTERING_DESC?= Sub-pixel rendering (patented) |
33 |
LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING |
43 |
LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING |
34 |
|
44 |
PNG_DESC= Png compressed OpenType embedded bitmaps support |
35 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
45 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
36 |
PNG_CONFIGURE_OFF= --without-png |
46 |
PNG_CONFIGURE_OFF= --without-png |
37 |
|
47 |
|
|
|
48 |
SUBPIXEL_HINTING_DESC= Sub-pixel hinting support |
49 |
V38_DESC= v38 mode (Infinality code) |
50 |
V38_VARS= SUBPIXEL_MODE=1 |
51 |
V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting) |
52 |
V40_VARS= SUBPIXEL_MODE=2 |
53 |
|
54 |
.include <bsd.port.options.mk> |
55 |
|
56 |
.if defined(SUBPIXEL_MODE) |
57 |
.if ${PORT_OPTIONS:MV38} && ${PORT_OPTIONS:MV40} |
58 |
SUBPIXEL_MODE=3 |
59 |
.endif |
60 |
CFLAGS+= -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=${SUBPIXEL_MODE} |
61 |
.endif |
62 |
|
38 |
pre-patch: |
63 |
pre-patch: |
39 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
64 |
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \ |
40 |
${WRKSRC}/builds/unix/install.mk |
65 |
${WRKSRC}/builds/unix/install.mk |
Lines 46-49
Link Here
|
46 |
post-install: |
71 |
post-install: |
47 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
72 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.* |
48 |
|
73 |
|
|
|
74 |
post-install-DOCS-on: |
75 |
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) |
76 |
|
49 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.mk> |