Need Help With FreeBSD Port Makefile

Need Help With FreeBSD Port Makefile

Post by Tim Daneliu » Sat, 21 Dec 2002 09:20:07



I've written a Python program which I'd like to distribute as a
FreeBSD port (http://www.tundraware.com/Software/twander/).

At the moment, the port Makefile contains:

USE_PYTHON = yes

But I really want something more specific.  Two questions:

1) Is there a way to specify that I need Python 2.2 *or later* - I don't
    want to have to update the port every time there is a Python update,
    but the program will not run with versions of Python prior to 2.2.

2) In a similar vein, how do I specify that the program depends on
    py-tkinter versions 2.2 *or later*?

TIA,
------------------------------------------------------------------------------
Tim Daneliuk

 
 
 

Need Help With FreeBSD Port Makefile

Post by Karsten W. Rohrbac » Sat, 21 Dec 2002 10:46:56



> At the moment, the port Makefile contains:

> USE_PYTHON = yes

Did you already check the additional options available from
/usr/ports/Mk/bsd.python.mk ?

PYTHON_VERSION="python2.2" might work

as for the tkinter stuff you might try to set

BUILD_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
RUN_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

as it is done in /usr/ports/graphics/py-imaging (PIL)

regards,
/k

 
 
 

Need Help With FreeBSD Port Makefile

Post by Tim Daneliu » Sat, 21 Dec 2002 11:10:07




>>At the moment, the port Makefile contains:

>>USE_PYTHON = yes

> Did you already check the additional options available from
> /usr/ports/Mk/bsd.python.mk ?

> PYTHON_VERSION="python2.2" might work

> as for the tkinter stuff you might try to set

> BUILD_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
> RUN_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

> as it is done in /usr/ports/graphics/py-imaging (PIL)

> regards,
> /k

Thanks for the info - I'll look into it...

--
------------------------------------------------------------------------------
Tim Daneliuk

 
 
 

1. cvs commit: ports/java Makefile ports/java/forte Makefile distinfo (fwd)

Still no go. Apparently I misguided you in my last e-mail. The error
message in question ls:

/usr/local/jdk1.3.1/jre/../bin/java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=big_brother:1028,suspend=y -Djava.compiler=NONE "-Xbootclasspath:/usr/local/jdk1.3.1/jre/../lib/tools.jar:/usr/local/jdk1.3.1/jre/lib/rt.jar:/usr/local/jdk1.3.1/jre/lib/i18n.jar:/usr/local/jdk1.3.1/jre/lib/sunrsasign.jar:/usr/local/jdk1.3.1/jre/classes:" -classpath "/root/ffjuser30/system:/usr/local/share/java/forte4j/system:/usr/local/share/java/forte4j/beans/TimerBean.jar:/root/ffjuser30/sampledir:/tmp:/usr/local/share/java/forte4j/modules/ext/AbsoluteLayout.jar:/usr/local/share/java/forte4j/lib/ext/servlet.jar" Test
Can't load "libjdwp.so", because /usr/local/jdk1.3.1/jre/../jre/../lib/i386/libjdwp.so: Undefined symbol "fork1"
Could not create the Java virtual machine.

I donno where that `fork1' came from - the system in question is fairly
recent 5-CURRENT box, last updated on 17 August.

There are also another serious problem with it - it doesn't accept uppercase
letters, i.e. when I'm trying to type uppercase letter it gets lowercase
instead, which makes it pretty useless, as Java is case-sensitive. At the
same time Linux JDK doesn't have such problem, so it is unlikely that this
is a local misconfiguration.

Please let me know if you will have any ideas on how it could be fixed.

Thank you!

-Maxim


with "unsubscribe freebsd-java" in the body of the message

2. user can use minicom

3. libraries in 1.2.8

4. cvs commit: ports/java Makefile ports/java/forte Makefile distinfo

5. Weird NQS problem

6. Need help with FREEBSD version 3.2 and modem / comm port recognition.

7. I can't start X from a user's account

8. NSPR port is ready [Fwd: cvs commit: ports/devel Makefile

9. ports Makefile help

10. Need help porting DOS app that uses parallel port

11. Need help porting DOS app that uses parallel port (Part II)

12. *** Port Mapping (or Port Forwarding), need help fast PLEASE ***