pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/30019: [PATCH] textproc/openjade fails to build on OS X



The following reply was made to PR pkg/30019; it has been noted by GNATS.

From: Idar Tollefsen <idart%performancedesign.no@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/30019: [PATCH] textproc/openjade fails to build on OS X
Date: Mon, 30 May 2005 02:09:26 +0200

 This is a multi-part message in MIME format.
 --------------020106070503070506000305
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Here's the patch updated for openjade-1.3.2nb3.
 
 --------------020106070503070506000305
 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
  name="Makefile.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Makefile.diff"
 
 --- Makefile.orig      Mon May 30 01:32:30 2005
 +++ Makefile   Mon May 30 01:59:13 2005
 @@ -16,14 +16,55 @@
  USE_LIBTOOL=  YES
  GNU_CONFIGURE=        YES
  
 +.include "../../mk/bsd.prefs.mk"
 +
 +.if !defined(CXXFLAGS) || empty(CXXFLAGS)
  CONFIGURE_ENV+=       CXXFLAGS="${CFLAGS}"
 -CONFIGURE_ARGS+=      --enable-default-catalog=${OPENJADE_DATA_DIR}/catalog \
 +.endif
 +CONFIGURE_ARGS+=      --enable-default-catalog=${SGML_CATALOG} \
                --datadir=${OPENJADE_DATA_DIR}
  
  SGML_CATALOGS=                ${PREFIX}/share/sgml/openjade/catalog
  
 +LDFLAGS+=     -lintl
 +# If you get undefined symbol errors like these:
 +# vtable for __cxxabiv1::__class_type_info
 +# vtable for __cxxabiv1::__si_class_type_info
 +# operator delete(void*)
 +# operator new(unsigned long)
 +# ___cxa_pure_virtual
 +# ___gxx_personality_v0
 +# then try adding your platform here for explicit
 +# linkage against libstdc++.
 +.if ${OPSYS} == "Darwin"
 +LDFLAGS+=      -lstdc++
 +.endif
 +
  OPENJADE_DATA_DIR=    ${PREFIX}/share/sgml/openjade
  OPENJADE_DOC_DIR=     ${PREFIX}/share/doc/openjade
 +
 +post-configure:
 +      @${CP} ${WRKSRC}/Makefile.comm ${WRKSRC}/Makefile.comm.orig
 +      @${SED} \
 +              -e "s|LIBS= -lintl|LIBS= |g" \
 +              -e "s|LIBS=-lintl|LIBS= |g" \
 +              < ${WRKSRC}/Makefile.comm.orig > ${WRKSRC}/Makefile.comm
 +      @${CP} ${WRKSRC}/Makefile.lib ${WRKSRC}/Makefile.lib.orig
 +.if ${OPSYS} == "Darwin"
 +      @${SED} "s|LINKFLAGS = -no-undefined|LINKFLAGS = ${LDFLAGS}|g" \
 +              < ${WRKSRC}/Makefile.lib.orig > ${WRKSRC}/Makefile.lib
 +.else
 +      @${SED} "s|LINKFLAGS = |LINKFLAGS = ${LDFLAGS} |g" \
 +              < ${WRKSRC}/Makefile.lib.orig > ${WRKSRC}/Makefile.lib
 +.endif
 +      @${CP} ${WRKSRC}/Makefile.prog ${WRKSRC}/Makefile.prog.orig
 +.if ${OPSYS} == "Darwin"
 +      @${SED} "s|LINKFLAGS = -no-undefined|LINKFLAGS = ${LDFLAGS}|g" \
 +              < ${WRKSRC}/Makefile.prog.orig > ${WRKSRC}/Makefile.prog
 +.else
 +      @${SED} "s|LINKFLAGS = |LINKFLAGS = ${LDFLAGS} |g" \
 +              < ${WRKSRC}/Makefile.prog.orig > ${WRKSRC}/Makefile.prog
 +.endif
  
  post-install:
        ${INSTALL_DATA_DIR} ${OPENJADE_DATA_DIR}/pubtext
 
 --------------020106070503070506000305--
 



Home | Main Index | Thread Index | Old Index