diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-01-27 05:09:15 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-01-27 05:09:15 +0800 |
commit | 75628572971f5601ed0276c9140be45d40a98eaa (patch) | |
tree | 82cc124ca6548512f37fa905ac7cb72d2996a374 | |
parent | 2861207bea28c8d966cc9cca79f1320ec813c037 (diff) | |
download | freebsd-ports-gnome-75628572971f5601ed0276c9140be45d40a98eaa.tar.gz freebsd-ports-gnome-75628572971f5601ed0276c9140be45d40a98eaa.tar.zst freebsd-ports-gnome-75628572971f5601ed0276c9140be45d40a98eaa.zip |
AllegroFont is an Allegro wrapper for the wonderful FreeType2 library
that makes Allegro (amongst other things) able to load and render TTF
and many other famous font formats. Other feature is that it is able
to render the fonts antialiased.
WWW: http://opensnc.sourceforge.net/alfont/
PR: ports/180216
Submitted by: nemysis (self)
-rw-r--r-- | x11-fonts/Makefile | 1 | ||||
-rw-r--r-- | x11-fonts/alfont/Makefile | 86 | ||||
-rw-r--r-- | x11-fonts/alfont/distinfo | 4 | ||||
-rw-r--r-- | x11-fonts/alfont/pkg-descr | 6 |
4 files changed, 97 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 5d2c6d0e8e24..7ab362524c19 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -4,6 +4,7 @@ COMMENT = X11 fonts and font utilities SUBDIR += alegreya-sans + SUBDIR += alfont SUBDIR += andika SUBDIR += anonymous-pro SUBDIR += artwiz-aleczapka diff --git a/x11-fonts/alfont/Makefile b/x11-fonts/alfont/Makefile new file mode 100644 index 000000000000..161d82333730 --- /dev/null +++ b/x11-fonts/alfont/Makefile @@ -0,0 +1,86 @@ +# Created by: Rusmir Dusko <nemysis@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= alfont +PORTVERSION= 209 +CATEGORIES= x11-fonts +MASTER_SITES= http://opensnc.sourceforge.net/alfont/mirror/ \ + SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:nemysis +# http://opensnc.sourceforge.net/alfont/:opensnc +DISTFILES= AlFont${DISTVERSION}.rar \ + alfont.c:nemysis +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= AlFont${DISTVERSION}.rar + +MAINTAINER= nemysis@FreeBSD.org +COMMENT= Wrapper around the freetype2 library + +LICENSE= FTL +LICENSE_NAME= The FreeType Project LICENSE (FTL) +LICENSE_FILE= ${WRKSRC}/docs/FTL.txt +LICENSE_PERMS= auto-accept + +EXTRACT_DEPENDS= unrar:${PORTSDIR}/archivers/unrar +LIB_DEPENDS= liballeg.so.4:${PORTSDIR}/devel/allegro \ + libfreetype.so:${PORTSDIR}/print/freetype2 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USES= dos2unix gmake iconv +USE_LDCONFIG= yes + +CPPFLAGS+= -Iinclude -I${LOCALBASE}/include \ + -I${LOCALBASE}/include/freetype2 $$(freetype-config --cflags) -w +LDFLAGS+= -L${LOCALBASE}/lib -lalleg $$(freetype-config --libs) + +PLIST_FILES= include/alfont.h \ + include/alfontdll.h \ + lib/libalfont.so.${MAJORVER} \ + lib/libalfont.so + +PORTDOCS= * + +DOCSRCDIR1= ${WRKSRC} +DOC_FILES1= CHANGES.txt README.txt + +DOCSRCDIR2= ${WRKSRC}/docs +DOCSDIR2= ${DOCSDIR}/docs +DOC_FILES2= ALFONT.txt AUTHORS.txt + +OPTIONS_DEFINE= DOCS + +MAJORVER= ${PORTVERSION:S/209/2.0.9/} + +do-extract: + @${MKDIR} ${WRKDIR} + @cd ${WRKDIR} && ${LOCALBASE}/bin/unrar x -y -idq \ + ${_DISTDIR}/AlFont${DISTVERSION}.rar + +post-patch: + @${CP} -af ${_DISTDIR}/alfont.c ${WRKSRC}/src + + @${REINPLACE_CMD} \ + -e 's|#define ALFONT_WINDOWS|//#define ALFONT_WINDOWS|' \ + -e 's|//#define ALFONT_LINUX|#define ALFONT_LINUX|' \ + ${WRKSRC}/include/alfont.h + +do-build: + cd ${WRKSRC} ; ${CC} ${CPPFLAGS} -fPIC -DPIC -c src/alfont.c -o \ + src/alfont.o + cd ${WRKSRC} ; ${CC} -shared ${LDFLAGS} src/alfont.o -o \ + libalfont.so.${MAJORVER} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libalfont.so.${MAJORVER} \ + ${STAGEDIR}${PREFIX}/lib + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libalfont.so.${MAJORVER} + @(cd ${STAGEDIR}${PREFIX}/lib ; ${LN} -sf libalfont.so.${MAJORVER} \ + libalfont.so) + ${INSTALL_DATA} ${WRKSRC}/include/alfont*.h ${STAGEDIR}${PREFIX}/include + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR2} + ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} + +.include <bsd.port.mk> diff --git a/x11-fonts/alfont/distinfo b/x11-fonts/alfont/distinfo new file mode 100644 index 000000000000..2fd5fc5a5abe --- /dev/null +++ b/x11-fonts/alfont/distinfo @@ -0,0 +1,4 @@ +SHA256 (alfont/AlFont209.rar) = 734f7f9758dfb3b80979baf010245d931c9cd2a7557683906c7fc616353f960d +SIZE (alfont/AlFont209.rar) = 3696983 +SHA256 (alfont/alfont.c) = 9d77d1ef5ce7d9c05e7e499d48d404aa51d2c2b3dd03fac7fd75c60e6adeb145 +SIZE (alfont/alfont.c) = 147045 diff --git a/x11-fonts/alfont/pkg-descr b/x11-fonts/alfont/pkg-descr new file mode 100644 index 000000000000..c04af6748a9d --- /dev/null +++ b/x11-fonts/alfont/pkg-descr @@ -0,0 +1,6 @@ +AllegroFont is an Allegro wrapper for the wonderful FreeType2 library +that makes Allegro (amongst other things) able to load and render TTF +and many other famous font formats. Other feature is that it is able +to render the fonts antialiased. + +WWW: http://opensnc.sourceforge.net/alfont/ |