Date: Sun, 21 Jun 2009 18:58:40 -0400 From: Eitan Adler <eitanadlerlist@gmail.com> To: freebsd-ports@freebsd.org Subject: updating the allegro-devel port Message-ID: <4A3EBB20.10208@gmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080809000701070506020506 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit If you download allegro and follow the following steps allegro happily compiles and installs. I copied and modified the Makefile from the current allegro-devel port and I'm having some difficulty making it cooperate. The patches are in the files/ directory. 0) apply (reversed) patches 1) run ./fix.sh unix 2) run gmake depend 3) run gmake 4) run gmake install 5) run gmake install-gzipped-man instead of #2 and #3 you could also run gmake full-build If someone could help me fix this Makefile it would really help ;) -- Eitan Adler --------------080809000701070506020506 Content-Type: text/plain; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" # New ports collection makefile for: allegro # Date created: 23-Feb-2001 # Whom: Eitan Adler <EitanAdlerList@gmail.com> # # $FreeBSD$ # PORTNAME= allegro DISTVERSION= 4.3.10 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= alleg PKGNAMESUFFIX= -devel MAINTAINER= EitanAdlerList@gmail.com COMMENT= A cross-platform library for games and multimedia programming USE_AUTOTOOLS= autoconf:262 USE_GMAKE= yes USE_XORG= x11 xpm xext xcursor xxf86vm xxf86dga USE_LDCONFIG= yes WANT_GNOME= yes OPTIONS= AL "Enable OpenAL support" off \ ARTS "Enable Arts support" off \ DEBUG "Build debugging library" off \ DEVEL "Build development utilities" on \ ESOUND "Enable Esound support" off \ JACK "Enable JACK support" off \ OPTIMIZED_CFLAGS "Enable compilation optimizations" on \ PROFILE "Build profiling library" off \ THREADS "Enable threads" on MAKEFILE= makefile ALL_TARGET= full-build .include "Makefile.man" INFO= allegro CONFLICTS= allegro-[0-9]* LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} PLIST_SUB= SHLIB_VER="${SHLIB_VER}" DEMO= demo.c demo.dat demo.h music.txt ../readme.txt SHLIB_VER= 43 .include <bsd.port.pre.mk> .if defined(WITH_AL) LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal CONFIGURE_ARGS+=--enable-sgialdigi PLIST_SUB+= AL="" .else CONFIGURE_ARGS+=--disable-sgialdigi PLIST_SUB+= AL="@comment " .endif .if defined(WITH_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+=--enable-artsdigi PLIST_SUB+= ARTS="" .else CONFIGURE_ARGS+=--disable-artsdigi PLIST_SUB+= ARTS="@comment " .endif .if defined(WITH_DEBUG) CONFIGURE_ARGS+=--enable-dbglib PLIST_SUB+= DEBUG="" .else CONFIGURE_ARGS+=--disable-dbglib PLIST_SUB+= DEBUG="@comment " .endif .if !defined(WITHOUT_DEVEL) INSTALL_TARGET= full-install install-man install-info PLIST_SUB+= DEVEL="" .else INSTALL_TARGET= mini-install install-man install-info PLIST_SUB+= DEVEL="@comment " .endif .if defined(WITH_ESOUND) USE_GNOME+= esound CONFIGURE_ARGS+=--enable-esddigi PLIST_SUB+= ESOUND="" .else CONFIGURE_ARGS+=--disable-esddigi PLIST_SUB+= ESOUND="@comment " .endif .if defined(WITH_JACK) LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack CONFIGURE_ARGS+=--enable-jackdigi PLIST_SUB+= JACK="" .else CONFIGURE_ARGS+=--disable-jackdigi PLIST_SUB+= JACK="@comment " .endif .if defined(WITH_PROFILE) CONFIGURE_ARGS+=--enable-proflib PLIST_SUB+= PROFILE="" .else CONFIGURE_ARGS+=--disable-proflib PLIST_SUB+= PROFILE="@comment " .endif .if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+=--enable-pthreads CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -DHAVE_LIBPTHREAD" \ LDFLAGS="${PTHREAD_LIBS}" .else CONFIGURE_ARGS+=--disable-pthreads .endif post-patch: # Change "x.y.z" into "xy" in the shared library version. @${REINPLACE_CMD} -e 's|${PORTVERSION}|${SHLIB_VER}|g' \ ${WRKSRC}/makefile.ver # Remove architecture specific optimizations. @${REINPLACE_CMD} -e 's|$$TARGET_ARCH||g' \ ${CONFIGURE_WRKSRC}/configure.in # Remove "-ffast-math" flag on alpha, because it breaks. .if ${ARCH} == "alpha" @${REINPLACE_CMD} -e 's|-ffast-math||g' \ ${CONFIGURE_WRKSRC}/configure.in .endif # Threading libraries. @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/aclocal.m4 # Enable/disable compilation optimizations. .if defined(WITHOUT_OPTIMIZED_CFLAGS) @${REINPLACE_CMD} -e 's|-O2||g ; \ s|-ffast-math||g ; \ s|-fomit-frame-pointer||g ; \ s|-funroll-loops||g' \ ${CONFIGURE_WRKSRC}/configure.in .endif post-install: # Documentation. .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/html/*.html ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/html/*.css ${DOCSDIR} # Examples. @${MKDIR} ${EXAMPLESDIR} ${INSTALL_PROGRAM} ${WRKSRC}/demo/demo ${EXAMPLESDIR} . for f in ${DEMO} ${INSTALL_DATA} ${WRKSRC}/demo/${f} ${EXAMPLESDIR} . endfor .endif .include <bsd.port.post.mk> --------------080809000701070506020506 Content-Type: text/plain; name="patch1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch1.patch" --- allegro-4.3.10/addons/logg/Makefile.unix 2009-06-18 16:21:35.000000000 -0400 +++ allegro-4.3.10-orig/addons/logg/Makefile.unix 2008-01-03 15:45:20.000000000 -0500 @@ -1,6 +1,6 @@ PREFIX=`../../allegro-config --prefix` CC=gcc -FLAGS=-O2 -g0 `../../allegro-config --cflags --addon` -I../../include -I/usr/local/include +FLAGS=-O2 -g0 `../../allegro-config --cflags --addon` -I../../include LFLAGS=-L. -L../../lib/unix -llogg -logg -lvorbis -lvorbisfile `../../allegro-config --libs --addon` -lm all: lib play_ogg stream_ogg --------------080809000701070506020506 Content-Type: text/plain; name="patch2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch2.patch" --- allegro-4.3.10/addons/loadpng/Makefile.all 2009-06-21 18:26:44.000000000 -0400 +++ allegro-4.3.10-orig/addons/loadpng/Makefile.all 2008-01-02 09:39:42.000000000 -0500 @@ -1,7 +1,7 @@ ## Toplevel Makefile CC := gcc -CFLAGS := -W -Wall -O3 -I. -I../../include -I/usr/local/include +CFLAGS := -W -Wall -O3 -I. -I../../include ifdef STATICLINK CFLAGS += -DALLEGRO_STATICLINK --------------080809000701070506020506 Content-Type: text/plain; name="patch3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch3.patch" --- allegro-4.3.10/configure.in 2009-06-18 16:20:46.000000000 -0400 +++ allegro-4.3.10-orig/configure.in 2008-01-03 15:47:10.000000000 -0500 @@ -17,7 +17,7 @@ #-----------------------------------------------------------------------------# dnl Build CFLAGS from scratch -CFLAGS= -I/usr/local/include +CFLAGS= dnl Enable 8-bpp color depth (default). AC_ARG_ENABLE(color8, --------------080809000701070506020506--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A3EBB20.10208>