ports/180216: [NEW PORT] x11-fonts/alfont: Wrapper around the freetype2 library
nemysis
nemysis at gmx.ch
Tue Jul 2 20:40:01 UTC 2013
>Number: 180216
>Category: ports
>Synopsis: [NEW PORT] x11-fonts/alfont: Wrapper around the freetype2 library
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 02 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: nemysis
>Release: FreeBSD 9.1-RELEASE-p8 amd64
>Organization:
>Environment:
FreeBSD FreeBSD_Ports 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013
>Description:
alfont also known as AllegroFont or AlFont is a wrapper around the freetype2
library for use with the Allegro game library. Thus allowing the display of
text using freetype fonts on Allegro bitmaps.
WWW: http://opensnc.sourceforge.net/alfont/mirror/
WWW: http://opensnc.sourceforge.net/alfont/
Future Port games/opensurge reqires for build x11-fonts/alfont.
>How-To-Repeat:
Build log
https://redports.org/buildarchive/20130702164801-16847/
depend (compiler_error in audio/jack)
>Fix:
Please add attachment as x11-fonts/alfont
Shar is also on
https://github.com/nemysis/FreeBSD_Ports/blob/master/pr/x11-fonts/alfont.shar
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# alfont
# alfont/Makefile
# alfont/pkg-descr
# alfont/distinfo
#
echo c - alfont
mkdir -p alfont > /dev/null 2>&1
echo x - alfont/Makefile
sed 's/^X//' >alfont/Makefile << 'a34f32b0352a953e7b6b816bd2bf7cec'
X# Created by: nemysis <nemysis at gmx.ch>
X# $FreeBSD$
X
XPORTNAME= alfont
XPORTVERSION= 209
XCATEGORIES= x11-fonts
XMASTER_SITES= http://opensnc.sourceforge.net/alfont/mirror/ \
X http://opensnc.sourceforge.net/alfont/:opensnc
XDISTFILES= AlFont${DISTVERSION}.rar \
X alfont.c:opensnc
XDIST_SUBDIR= ${PORTNAME}
XEXTRACT_ONLY= AlFont${DISTVERSION}.rar
X
XMAINTAINER= nemysis at gmx.ch
XCOMMENT= Wrapper around the freetype2 library
X
XLICENSE= FTL
XLICENSE_NAME= The FreeType Project LICENSE (FTL)
XLICENSE_FILE= ${WRKSRC}/docs/FTL.txt
XLICENSE_PERMS= auto-accept
X
XEXTRACT_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
XLIB_DEPENDS= alleg.4:${PORTSDIR}/devel/allegro-devel \
X freetype:${PORTSDIR}/print/freetype2
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XUSES= iconv
XUSE_DOS2UNIX= yes
XUSE_GMAKE= yes
XUSE_LDCONFIG= yes
X
XCPPFLAGS+= -Iinclude -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
XLDFLAGS+= -L${LOCALBASE}/lib -lalleg
X
XPLIST_FILES= include/alfont.h \
X include/alfontdll.h \
X lib/libalfont.so.${MAJORVER} \
X lib/libalfont.so
X
XPORTDOCS= *
X
XDOCSRCDIR1= ${WRKSRC}
XDOC_FILES1= CHANGES.txt README.txt
X
XDOCSRCDIR2= ${WRKSRC}/docs
XDOCSDIR2= ${DOCSDIR}/docs
XDOC_FILES2= ALFONT.txt AUTHORS.txt
X
XOPTIONS_DEFINE= DOCS
X
X.include <bsd.port.options.mk>
X
XMAJORVER= ${PORTVERSION:S/209/2.0.9/}
X
Xdo-extract:
X @${MKDIR} ${WRKDIR}
X @cd ${WRKDIR} && unrar x -y -idq ${_DISTDIR}/AlFont${DISTVERSION}.rar
X
Xpost-patch:
X @${CP} -af ${_DISTDIR}/alfont.c ${WRKSRC}/src
X @${REINPLACE_CMD} -e 's|ugetxc((char\*\*)|ugetxc((const char\*\*)|' \
X ${WRKSRC}/src/alfont.c
X
X @${REINPLACE_CMD} \
X -e 's|#define ALFONT_WINDOWS|//#define ALFONT_WINDOWS|' \
X -e 's|//#define ALFONT_LINUX|#define ALFONT_LINUX|' \
X ${WRKSRC}/include/alfont.h
X
Xdo-build:
X cd ${WRKSRC} ; ${CC} ${CPPFLAGS} -fPIC -DPIC $(shell freetype-config --cflags) \
X -c src/alfont.c -o src/alfont.o
X
X cd ${WRKSRC} ; ${CC} -shared ${LDFLAGS} -Wl,--no-as-needed,-soname,libalfont.so.${MAJORVER} \
X $(shell allegro-config --libs) $(shell freetype-config --libs) \
X src/alfont.o -o libalfont.so.${MAJORVER}
X
Xdo-install:
X ${INSTALL_DATA} ${WRKSRC}/libalfont.so.${MAJORVER} ${PREFIX}/lib
X @cd ${PREFIX}/lib ; ${LN} -sf libalfont.so.${MAJORVER} libalfont.so
X ${INSTALL_DATA} ${WRKSRC}/include/alfont*.h ${PREFIX}/include
X
Xpost-install:
X.if ${PORT_OPTIONS:MDOCS}
X @${MKDIR} ${DOCSDIR}
X ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
X @${MKDIR} ${DOCSDIR2}
X ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
X.endif
X
X.include <bsd.port.mk>
a34f32b0352a953e7b6b816bd2bf7cec
echo x - alfont/pkg-descr
sed 's/^X//' >alfont/pkg-descr << '1a2a36d9bfe9ec9fe181ef7e23404924'
Xalfont also known as AllegroFont or AlFont is a wrapper around the freetype2
Xlibrary for use with the Allegro game library. Thus allowing the display of
Xtext using freetype fonts on Allegro bitmaps.
X
XWWW: http://opensnc.sourceforge.net/alfont/mirror/
XWWW: http://opensnc.sourceforge.net/alfont/
1a2a36d9bfe9ec9fe181ef7e23404924
echo x - alfont/distinfo
sed 's/^X//' >alfont/distinfo << '6f613e293209a2a93e4279af6817cd7e'
XSHA256 (alfont/AlFont209.rar) = 734f7f9758dfb3b80979baf010245d931c9cd2a7557683906c7fc616353f960d
XSIZE (alfont/AlFont209.rar) = 3696983
XSHA256 (alfont/alfont.c) = 5142ba722bb85b760929f6d46dd20b57d094c992e8187f52d4cac38532510797
XSIZE (alfont/alfont.c) = 146998
6f613e293209a2a93e4279af6817cd7e
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list