View | Details | Raw Unified | Return to bug 174823 | Differences between
and this patch

Collapse All | Expand All

(-)/kirby/shared/ports/fontforge/Makefile (-43 / +42 lines)
Lines 5-13 Link Here
5
DISTVERSION=	20120731-b
5
DISTVERSION=	20120731-b
6
PORTREVISION=	1
6
PORTREVISION=	1
7
CATEGORIES=	print
7
CATEGORIES=	print
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-source
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-source \
9
DISTFILES=	${EXTRACT_ONLY}
9
		SF/freetype/${PORTNAME}/${PORTVERSION}:freetype \
10
EXTRACT_ONLY=	${PORTNAME}_full-${DISTVERSION}.tar.bz2
10
		http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/:freetype \
11
		http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/:freetype \
12
		http://ftp.sunet.se/pub/text-processing/freetype/freetype2/:freetype \
13
		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,}:freetype \
14
		ftp://ftp.freetype.org/freetype/freetype2/:freetype
15
DISTFILES=	${PORTNAME}_full-${DISTVERSION}.tar.bz2
11
16
12
MAINTAINER=	cyberbotx@cyberbotx.com
17
MAINTAINER=	cyberbotx@cyberbotx.com
13
COMMENT=	Type 1/TrueType/OpenType/bitmap font editor
18
COMMENT=	Type 1/TrueType/OpenType/bitmap font editor
Lines 17-38 Link Here
17
		jpeg:${PORTSDIR}/graphics/jpeg \
22
		jpeg:${PORTSDIR}/graphics/jpeg \
18
		png15:${PORTSDIR}/graphics/png \
23
		png15:${PORTSDIR}/graphics/png \
19
		gif:${PORTSDIR}/graphics/giflib \
24
		gif:${PORTSDIR}/graphics/giflib \
20
		freetype:${PORTSDIR}/print/freetype2 \
21
		xml2:${PORTSDIR}/textproc/libxml2 \
25
		xml2:${PORTSDIR}/textproc/libxml2 \
22
		spiro:${PORTSDIR}/graphics/libspiro
26
		spiro:${PORTSDIR}/graphics/libspiro
23
27
24
.if defined(FONTFORGE_WITH_TTF_DEBUGGER)
25
FREETYPE_VERSION=	2.4.9
26
EXTRACT_ONLY+=	freetype-${FREETYPE_VERSION}.tar.bz2
27
.endif
28
29
.if !defined(NOPORTDOCS)
30
DOC_VERSION=	${DISTVERSION}
31
MASTER_SITES+=	SF/${PORTNAME}/${PORTNAME}-docs:docs
32
DOCFILES=	${PORTNAME}_htdocs-${DOC_VERSION}.tar.bz2
33
DISTFILES+=	${DOCFILES:C/$/:docs/}
34
.endif
35
36
USE_BZIP2=	yes
28
USE_BZIP2=	yes
37
USE_GETTEXT=	yes
29
USE_GETTEXT=	yes
38
USE_XORG=	x11 xi ice xkbui
30
USE_XORG=	x11 xi ice xkbui
Lines 40-52 Link Here
40
USE_ICONV=	yes
32
USE_ICONV=	yes
41
PATCH_STRIP=	-l
33
PATCH_STRIP=	-l
42
34
43
.if !defined(FONTFORGE_NO_MULTILAYER)
35
OPTIONS_DEFINE=	DOCS MULTILAYER FREETYPE PLUGINS PYTHON CAIRO PYTHON
44
WITH_MULTILAYER=	--enable-type3
36
OPTIONS_DEFAULT=	DOCS MULTILAYER PLUGINS
37
MULTILAYER_DESC=	type3/SVG multilayer font support
38
39
.include <bsd.port.options.mk>
40
41
.if ${PORT_OPTIONS:MDOCS}
42
DOC_VERSION=	${DISTVERSION}
43
MASTER_SITES+=	SF/${PORTNAME}/${PORTNAME}-docs:docs
44
DOCFILES=	${PORTNAME}_htdocs-${DOC_VERSION}.tar.bz2
45
DISTFILES+=	${DOCFILES:C/$/:docs/}
46
.endif
47
48
.if ${PORT_OPTIONS:MMULTILAYER}
49
WITH_TYPE3_MULTILAYER=	--enable-type3
45
.else
50
.else
46
WITH_MULTILAYER=	--disable-type3
51
WITH_TYPE3_MULTILAYER=	--disable-type3
47
.endif
52
.endif
48
53
49
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED) && defined(FONTFORGE_WITH_TTF_DEBUGGER)
54
.if ${PORT_OPTIONS:MFREETYPE}
55
FREETYPE_VERSION=	2.4.11
56
FREETYPE_SRC=	freetype-${FREETYPE_VERSION}.tar.bz2
57
DISTFILES+=	${FREETYPE_SRC:C/$/:freetype/}
50
WITH_FREETYPE_SRC=	--enable-freetype --with-freetype-bytecode \
58
WITH_FREETYPE_SRC=	--enable-freetype --with-freetype-bytecode \
51
			--with-freetype-src=${WRKDIR}/freetype-${FREETYPE_VERSION}
59
			--with-freetype-src=${WRKDIR}/freetype-${FREETYPE_VERSION}
52
.else
60
.else
Lines 54-60 Link Here
54
			--without-freetype-src
62
			--without-freetype-src
55
.endif
63
.endif
56
64
57
CONFIGURE_ARGS=	${WITH_MULTILAYER} --enable-devicetables ${WITH_FREETYPE_SRC} \
65
CONFIGURE_ARGS=	${WITH_TYPE3_MULTILAYER} --enable-devicetables ${WITH_FREETYPE_SRC} \
58
		--enable-pasteafter --enable-tilepath
66
		--enable-pasteafter --enable-tilepath
59
CPPFLAGS+=	-I${LOCALBASE}/include
67
CPPFLAGS+=	-I${LOCALBASE}/include
60
LDFLAGS+=	-L${LOCALBASE}/lib
68
LDFLAGS+=	-L${LOCALBASE}/lib
Lines 65-77 Link Here
65
73
66
MAN1=		fontforge.1 fontimage.1 fontlint.1 sfddiff.1
74
MAN1=		fontforge.1 fontimage.1 fontlint.1 sfddiff.1
67
75
68
.if defined(FONTFORGE_NO_PLUGINS)
76
.if ${PORT_OPTIONS:MPLUGINS}
69
PLIST_SUB+=	NO_PLUGINS="@comment "
70
.else
71
PLIST_SUB+=	NO_PLUGINS=""
77
PLIST_SUB+=	NO_PLUGINS=""
78
.else
79
PLIST_SUB+=	NO_PLUGINS="@comment "
72
.endif
80
.endif
73
81
74
.if defined(WITH_PYTHON)
82
.if ${PORT_OPTIONS:MPYTHON}
75
USE_PYTHON=	yes
83
USE_PYTHON=	yes
76
ONLY_FOR_ARCHS=	i386
84
ONLY_FOR_ARCHS=	i386
77
ONLY_FOR_ARCHS_REASON=	Python on non-i386 systems doesn't link with Fontforge (issues with use of Python's .a file)
85
ONLY_FOR_ARCHS_REASON=	Python on non-i386 systems doesn't link with Fontforge (issues with use of Python's .a file)
Lines 81-94 Link Here
81
CONFIGURE_ARGS+=	--without-python
89
CONFIGURE_ARGS+=	--without-python
82
.endif
90
.endif
83
91
84
.if defined(WITH_CAIRO)
92
.if ${PORT_OPTIONS:MCAIRO}
85
LIB_DEPENDS+=	cairo:${PORTSDIR}/graphics/cairo
93
LIB_DEPENDS+=	cairo:${PORTSDIR}/graphics/cairo
86
CONFIGURE_ARGS+=	--with-cairo
94
CONFIGURE_ARGS+=	--with-cairo
87
.else
95
.else
88
CONFIGURE_ARGS+=	--without-cairo
96
CONFIGURE_ARGS+=	--without-cairo
89
.endif
97
.endif
90
98
91
.if defined(WITH_PANGO)
99
.if ${PORT_OPTIONS:MPANGO}
92
USE_GNOME+=	pango
100
USE_GNOME+=	pango
93
CONFIGURE_ARGS+=	--with-pango
101
CONFIGURE_ARGS+=	--with-pango
94
.else
102
.else
Lines 96-118 Link Here
96
.endif
104
.endif
97
105
98
pre-everything::
106
pre-everything::
99
.if !defined(WITHOUT_TTF_BYTECODE_ENABLED) && !defined(FONTFORGE_WITH_TTF_DEBUGGER)
107
.if !${PORT_OPTIONS:MMULTILAYER}
100
	@${ECHO_MSG} "If you have built freetype2 port with bytecode interpreter enabled,"
101
	@${ECHO_MSG} "You can use TTF instruction debugger by compiling fontforge port"
102
	@${ECHO_MSG} "with FONTFORGE_WITH_TTF_DEBUGGER defined."
103
	@${ECHO_MSG} "Note that you must put the source archive of FreeType in ${DISTDIR}."
104
	@${ECHO_MSG} "If you have installed freetype2 from a package, chdir to ${PORTSDIR}/print/freetype2"
105
	@${ECHO_MSG} "and execute 'make fetch' before building this port".
106
	@${ECHO_MSG} ""
107
.endif
108
.if !defined(FONTFORGE_NO_MULTILAYER)
109
	@${ECHO_MSG} "If your machine has small memory and you have to edit fonts with a lot"
108
	@${ECHO_MSG} "If your machine has small memory and you have to edit fonts with a lot"
110
	@${ECHO_MSG} "of glyphs, you can save memory by defining FONTFORGE_NO_MULTILAYER."
109
	@${ECHO_MSG} "of glyphs, you can save memory by enabling the MULTILAYER option."
111
	@${ECHO_MSG} "Enabling multilayer editing increases memory consumption per glyph."
110
	@${ECHO_MSG} "Enabling multilayer editing increases memory consumption per glyph."
112
	@${ECHO_MSG} ""
111
	@${ECHO_MSG} ""
113
.endif
112
.endif
114
113
115
.if !defined(NOPORTDOCS)
114
.if ${PORT_OPTIONS:MDOCS}
116
post-extract:
115
post-extract:
117
	${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap
116
	${MKDIR} ${WRKDIR}/html ${WRKSRC}/cidmap
118
	for doc in ${DOCFILES} ; \
117
	for doc in ${DOCFILES} ; \
Lines 127-133 Link Here
127
post-patch:
126
post-patch:
128
	@${CHMOD} +x ${WRKSRC}/configure
127
	@${CHMOD} +x ${WRKSRC}/configure
129
128
130
.if !defined(FONTFORGE_NO_PLUGINS)
129
.if ${PORT_OPTIONS:MPLUGINS}
131
post-build:
130
post-build:
132
	cd ${WRKSRC}/plugins; ${GMAKE}
131
	cd ${WRKSRC}/plugins; ${GMAKE}
133
.endif
132
.endif
Lines 135-145 Link Here
135
post-install:
134
post-install:
136
	${MKDIR} ${DOCSDIR}
135
	${MKDIR} ${DOCSDIR}
137
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
136
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
138
.if !defined(FONTFORGE_NO_PLUGINS)
137
.if ${PORT_OPTIONS:MPLUGINS}
139
	${MKDIR} ${PREFIX}/share/fontforge/plugins
138
	${MKDIR} ${PREFIX}/share/fontforge/plugins
140
	(cd ${WRKSRC}/plugins; ${INSTALL_DATA} .libs/* ${PREFIX}/share/fontforge/plugins )
139
	(cd ${WRKSRC}/plugins; ${INSTALL_DATA} .libs/* ${PREFIX}/share/fontforge/plugins)
141
.endif
140
.endif
142
.if !defined(NOPORTDOCS)
141
.if ${PORT_OPTIONS:MDOCS}
143
# Ditto the above note in post-extract for these comments
142
# Ditto the above note in post-extract for these comments
144
#	${MKDIR} ${DOCSDIR}/flags
143
#	${MKDIR} ${DOCSDIR}/flags
145
	${INSTALL_DATA} ${WRKDIR}/html/*.* ${DOCSDIR}
144
	${INSTALL_DATA} ${WRKDIR}/html/*.* ${DOCSDIR}
(-)/kirby/shared/ports/fontforge/distinfo (-2 / +2 lines)
Lines 1-6 Link Here
1
SHA256 (fontforge_full-20120731-b.tar.bz2) = 1b6184caff211e315783a029256f56cf05f1d4fd3cbcb41820d21c7745040fb6
1
SHA256 (fontforge_full-20120731-b.tar.bz2) = 1b6184caff211e315783a029256f56cf05f1d4fd3cbcb41820d21c7745040fb6
2
SIZE (fontforge_full-20120731-b.tar.bz2) = 5541994
2
SIZE (fontforge_full-20120731-b.tar.bz2) = 5541994
3
SHA256 (freetype-2.4.9.tar.bz2) = c4204ac1d48e99d4375a2f32bf4f3f92780a9d9f015e64e57e852f6c004859b9
4
SIZE (freetype-2.4.9.tar.bz2) = 1504819
5
SHA256 (fontforge_htdocs-20120731-b.tar.bz2) = 6c3f178484d21814762c52859ffead25564a93e88cd5fe7cc9877e4b7e85105d
3
SHA256 (fontforge_htdocs-20120731-b.tar.bz2) = 6c3f178484d21814762c52859ffead25564a93e88cd5fe7cc9877e4b7e85105d
6
SIZE (fontforge_htdocs-20120731-b.tar.bz2) = 3506833
4
SIZE (fontforge_htdocs-20120731-b.tar.bz2) = 3506833
5
SHA256 (freetype-2.4.11.tar.bz2) = ef9d0bcb64647d9e5125dc7534d7ca371c98310fec87677c410f397f71ffbe3f
6
SIZE (freetype-2.4.11.tar.bz2) = 1546087

Return to bug 174823