2017-04-22 23:03:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.46 2017/04/22 21:03:58 adam Exp $
|
2009-04-14 20:33:30 +02:00
|
|
|
#
|
|
|
|
|
2009-07-27 07:39:21 +02:00
|
|
|
DISTNAME= OdfAddinForOffice-src-3.0
|
|
|
|
PKGNAME= OdfConverter-3.0
|
2017-04-22 23:03:07 +02:00
|
|
|
PKGREVISION= 38
|
2009-04-14 20:33:30 +02:00
|
|
|
CATEGORIES= converters textproc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=odf-converter/}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://odf-converter.sourceforge.net/
|
|
|
|
COMMENT= Converter between Microsoft Office 2007 and OpenOffice formats
|
2009-07-27 06:20:25 +02:00
|
|
|
LICENSE= modified-bsd
|
2009-04-14 20:33:30 +02:00
|
|
|
|
2009-07-27 07:39:21 +02:00
|
|
|
# mono-basic DLLs are required at run-time (but not at build time).
|
2013-06-24 07:32:28 +02:00
|
|
|
DEPENDS+= mono-basic-[0-9]*:../../lang/mono-basic
|
2009-07-27 07:39:21 +02:00
|
|
|
|
2009-04-14 20:33:30 +02:00
|
|
|
USE_LANGUAGES= c
|
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
|
|
|
|
BUILD_DIRS= source/Common/OdfZipUtils
|
|
|
|
BUILD_DIRS+= source/Common/OdfConverterLib
|
|
|
|
BUILD_DIRS+= source/Word/Converter
|
|
|
|
BUILD_DIRS+= source/Presentation/Converter
|
|
|
|
BUILD_DIRS+= source/Spreadsheet/Converter
|
|
|
|
BUILD_DIRS+= source/AdditionalTools/zlib123/contrib/minizip
|
2009-09-02 10:47:15 +02:00
|
|
|
BUILD_DIRS+= source/Shell/OdfConverter
|
2009-04-14 20:33:30 +02:00
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin share/doc/OdfConverter
|
|
|
|
|
2009-07-27 07:39:21 +02:00
|
|
|
#
|
|
|
|
# The Subversion repository has a number of file name case issues. The
|
|
|
|
# essential ones are fixed here so that the build can complete on a
|
|
|
|
# case-sensitive filesystem.
|
|
|
|
#
|
|
|
|
FILE_CASE_FIXES= ${BUILD_DIRS}
|
2009-09-02 10:47:15 +02:00
|
|
|
FILE_CASE_FIXES+= source/Shell/OdfConverter/OdfCommandLineException.cs
|
|
|
|
FILE_CASE_FIXES+= source/Shell/OdfConverter/OdfConverter.cs
|
|
|
|
FILE_CASE_FIXES+= source/Shell/OdfConverter/OoxValidator.cs
|
|
|
|
FILE_CASE_FIXES+= source/Shell/OdfConverter/OdfValidator.cs
|
2009-04-14 20:33:30 +02:00
|
|
|
post-extract:
|
2009-07-27 07:39:21 +02:00
|
|
|
cd ${WRKDIR} && mv "odf-converter-r5224/trunk" ${DISTNAME:Q}
|
|
|
|
set -e; \
|
2009-11-12 02:15:31 +01:00
|
|
|
find "${WRKSRC}" -name Makefile -o \
|
|
|
|
-name '[Mm][Aa][Kk][Ee][Ff][Ii][Ll][Ee]' -print | \
|
2009-07-27 07:39:21 +02:00
|
|
|
while read file; do \
|
|
|
|
dir=`dirname "$$file"`; mv "$$file" "$$dir/Makefile"; done
|
|
|
|
set -e; files=""; \
|
|
|
|
for file in ${FILE_CASE_FIXES}; do \
|
|
|
|
while [ -n "$$file" -a "$$file" != "." ]; do \
|
|
|
|
files="$$file $$files"; base=`basename "$$file"`; \
|
|
|
|
file=`dirname "$$file"`; \
|
|
|
|
done; \
|
|
|
|
done; \
|
|
|
|
for file in $$files; do \
|
|
|
|
base=`basename "$$file"`; subdir=`dirname "$$file"`; \
|
|
|
|
lcbase=`basename "$$file" | tr 'A-Z' 'a-z'`; \
|
|
|
|
subdir="${WRKSRC}/$$subdir"; \
|
|
|
|
if [ -e "$$subdir/$$lcbase" -a ! -e "$$subdir/$$base" ]; then \
|
|
|
|
mv "$$subdir/$$lcbase" "$$subdir/$$base"; \
|
|
|
|
fi; \
|
|
|
|
done
|
2009-04-14 20:33:30 +02:00
|
|
|
|
|
|
|
do-install:
|
2009-09-02 10:47:15 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/Shell/OdfConverter/OdfConverter \
|
2009-07-27 07:39:21 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin/
|
2009-09-02 10:47:15 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/source/Shell/OdfConverter/README.TXT \
|
2009-07-27 07:39:21 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/OdfConverter/README.TXT
|
2009-04-14 20:33:30 +02:00
|
|
|
|
2015-05-23 08:43:00 +02:00
|
|
|
.include "../../lang/mono/buildlink3.mk"
|
2010-05-28 18:18:23 +02:00
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
2009-04-14 20:33:30 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|