# $OpenBSD: Makefile,v 1.6 2006/10/11 11:19:55 robert Exp $ ONLY_FOR_ARCHS= i386 COMMENT= "a multi-platform productivity suite" VERSION= 2.0.4rc3 DISTNAME= OOo_${VERSION}_061002_src WRKDIST= ${WRKDIR}/OOD680_m5 PKGNAME= openoffice-${VERSION} CATEGORIES= editors productivity SHARED_LIBS= icudata 26.0 \ icui18n 26.0 \ icule 26.0 \ icuuc 26.0 \ stlport_gcc 4.5 HOMEPAGE= http://www.openoffice.org/ MASTER_SITES= ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/OpenOffice/contrib/rc/2.0.4rc3/ \ ftp://ftp.tu-chemnitz.de/pub/openoffice/contrib/rc/${VERSION}/ \ ftp://ftp.nluug.nl/pub/office/openoffice/contrib/rc/${VERSION}/ \ http://vlaai.snt.utwente.nl/pub/software/openoffice/contrib/rc/${VERSION}/ \ ftp://openoffice.mirror.cygnal.ca/openoffice/contrib/rc/${VERSION}/ \ http://mirrors.protection.cx/~jolan/ # See http://www.openoffice.org/about.html#licenses # and http://www.openoffice.org/license.html # and http://www.openoffice.org/FAQs/faq-questions.html#licensing PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes BUILD_DEPENDS= :zip-*:archivers/zip \ :unzip-*:archivers/unzip \ :bison-*:devel/bison \ :pkgconfig-*:devel/pkgconfig \ :tcsh-*:shells/tcsh \ :p5-Archive-Zip-*:archivers/p5-Archive-Zip LIB_DEPENDS= gdk-x11-2.0.>=400.14,gdk_pixbuf-2.0.>=400.14,gtk-x11-2.0.>=400.14::x11/gtk+2 \ python2.3:python-2.3.*:lang/python/2.3 \ db.>=4::databases/db/v4 \ curl.>=2::net/curl \ neon.>=24::net/neon \ xslt.>=2::textproc/libxslt \ sndfile.>=1::audio/libsndfile WANTLIB= ICE SM X11 Xext atk-1.0 c cairo expat fontconfig \ freetype glib-2.0 gmodule-2.0 gobject-2.0 \ gthread-2.0 iconv intl jpeg m pango-1.0 \ pangocairo-1.0 pangoft2-1.0 pthread stdc++ xml2 z USE_X11= Yes USE_GMAKE= Yes NO_REGRESS= Yes VMEM_WARNING= Yes PATCHORIG= .orig.port WRKCONF= ${WRKSRC}/config_office CONFIGURE_STYLE= autoconf AUTOCONF_VERSION= 2.59 AUTOCONF_DIR= ${WRKCONF} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib" CONFIGURE_ARGS= --disable-gnome-vfs \ --disable-mozilla \ --disable-pasf \ --disable-cups \ --with-system-jpeg \ --with-system-python \ --with-system-libxml \ --with-system-stdlibs \ --with-system-freetype \ --with-system-curl \ --with-system-zlib \ --with-system-expat \ --with-system-neon \ --with-system-python \ --with-system-db \ --with-system-sndfile \ --with-epm=internal \ --with-package-format=portable \ --with-alloc=system \ --without-java FLAVORS= debug FLAVOR?= .if ${FLAVOR:L:Mdebug} CONFIGURE_ARGS+= --enable-crashdump --enable-symbols .endif NCPU= `sysctl -n hw.ncpu` # kludge OOARCH= OPENBSDGCCI TCSH= ${LOCALBASE}/bin/tcsh pre-patch: @cd ${WRKSRC}/bridges/source/cpp_uno && \ cp -R gcc3_freebsd_intel gcc3_openbsd_intel && \ perl -pi -e "s,FREEBSD,OPENBSD,g" gcc3_openbsd_intel/makefile.mk pre-configure: perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g; \ s,%%X11BASE%%,${X11BASE},g; \ s,%%TMPDIR%%,${TMPDIR},g" \ ${WRKCONF}/set_soenv.in \ ${WRKSRC}/solenv/inc/unxobsdi.mk perl -pi -e "s,/opt/%UNIXPRODUCTNAME%PRODUCTVERSION,openoffice,g" \ ${WRKSRC}/instsetoo_native/inc_openoffice/unix/packagelist.txt do-build: @cd ${WRKBUILD} && \ ./bootstrap && \ ${TCSH} -c 'source OpenBSDEnv.Set && cd instsetoo_native && \ build.pl -P${NCPU} --all' do-install: cd ${WRKSRC}/instsetoo_native/unxobsd.pro/OpenOffice/portable/install/en-US/openbsd-* && \ for SW in `ls -1 *.sw`; do \ ${TAR} xf $$SW -C ${PREFIX}; \ done ${INSTALL_SCRIPT} ${FILESDIR}/soffice.sh ${PREFIX}/bin/soffice perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g; \ s,%%X11BASE%%,${X11BASE},g" \ ${PREFIX}/bin/soffice \ cd ${PREFIX}/bin && \ for app in scalc sdraw simpress swriter; do \ ln -sf soffice $$app ; done .include